1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 14:27:23 +00:00

Add command type

This commit is contained in:
Sam
2019-10-02 23:00:58 -04:00
parent 6e8704b954
commit 21e34ee6d8

9
types.go Normal file
View File

@ -0,0 +1,9 @@
package main
// Command outlines a command
type Command struct {
Cmd []string // Any aliases that trigger this command
Description string // A short description of the command
Help string // The full help text explaining how to use the command
Exec func([]string) // A function that takes the command (arg[0]) and any arguments (arg[1:]) as input
}