mirror of https://github.com/Rudi9719/kbtui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
489 B
13 lines
489 B
package main |
|
|
|
import ( |
|
"github.com/jroimartin/gocui" |
|
) |
|
|
|
// 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(*gocui.Gui, []string) // A function that takes the command (arg[0]) and any arguments (arg[1:]) as input |
|
}
|
|
|