workflow

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL