Documentation ¶ Index ¶ type Action type Actions type Args func (a Args) ItemFromJSON(key string) (result string) func (a Args) UnmarshalKey(key string, dest interface{}) error type ArgsItem type ArgsList type Model func (w Model) RegisterAsCommand(rootCmd *cobra.Command) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Action ¶ type Action struct { Args ArgsList Runner func(args Args) (interface{}, error) } type Actions ¶ type Actions map[string]Action type Args ¶ type Args map[string]string func (Args) ItemFromJSON ¶ func (a Args) ItemFromJSON(key string) (result string) func (Args) UnmarshalKey ¶ func (a Args) UnmarshalKey(key string, dest interface{}) error type ArgsItem ¶ type ArgsItem []string type ArgsList ¶ type ArgsList []ArgsItem type Model ¶ type Model struct { Name string Description string Actions } func (Model) RegisterAsCommand ¶ func (w Model) RegisterAsCommand(rootCmd *cobra.Command) Source Files ¶ View all Source files args.gocommand.goworkflow.go Click to show internal directories. Click to hide internal directories.