Files
stash/vendor/github.com/gobuffalo/buffalo-plugins/plugins/plugdeps/command.go
2019-02-09 04:32:50 -08:00

17 lines
436 B
Go

package plugdeps
import "encoding/json"
// Command is the plugin command you want to control further
type Command struct {
Name string `toml:"name" json:"name"`
Flags []string `toml:"flags,omitempty" json:"flags,omitempty"`
Commands []Command `toml:"command,omitempty" json:"commands,omitempty"`
}
// String implementation of fmt.Stringer
func (p Command) String() string {
b, _ := json.Marshal(p)
return string(b)
}