Browse Source

Add command type

pull/1/head
Sam 5 years ago
parent
commit
21e34ee6d8
  1. 9
      types.go

9
types.go

@ -0,0 +1,9 @@ @@ -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
}
Loading…
Cancel
Save