github.com/cheikhshift/buffalo@v0.9.5/plugins/command.go (about) 1 package plugins 2 3 // Command that the plugin supplies 4 type Command struct { 5 // Name "foo" 6 Name string `json:"name"` 7 // UseCommand "bar" 8 UseCommand string `json:"use_command"` 9 // BuffaloCommand "generate" 10 BuffaloCommand string `json:"buffalo_command"` 11 // Description "generates a foo" 12 Description string `json:"description"` 13 Aliases []string `json:"aliases"` 14 Binary string `json:"-"` 15 } 16 17 // Commands is a slice of Command 18 type Commands []Command