Documentation
¶
Index ¶
- Variables
- func Args(ctx context.Context) []string
- func Init(commands []Command, logger pry.Logger, provider hilton.Provider) (*app, error)
- func NewCommand(name, description string) *baseCommand
- func NewContextWithCommand(name string, args []string, provider hilton.Provider, logger pry.Logger) context.Context
- func PrintList(w io.Writer, header string, items map[string]string)
- func WithArgs(ctx context.Context, args []string) context.Context
- type App
- type BaseCommand
- type Command
- type Commands
- type CommandsAware
- type Configure
- type Daemon
- type HasCloser
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandTag = commandTag{}
View Source
var ErrUsage = errors.New("usage")
View Source
var ItemColor = color.New(color.FgGreen)
Functions ¶
func NewCommand ¶
func NewCommand(name, description string) *baseCommand
Types ¶
type BaseCommand ¶
type CommandsAware ¶
type CommandsAware interface {
SetCommands(Commands)
}
Click to show internal directories.
Click to hide internal directories.