Versions in this module Expand all Collapse all v0 v0.1.0 Dec 23, 2024 Changes in this version + type Action func(ctx *Context) error + type App struct + Action Action + Args []*ArgDefinition + BuildInfo *BuildInfo + Opts []*OptDefinition + UsageExamples []*UsageExample + func (a *App) Run(ctx context.Context, args []string) + func (a *App) RunWithGlobalArgs(ctx context.Context) + type ArgDefinition struct + Description string + Name string + Required bool + ValuesEnum []string + func (d *ArgDefinition) HasValuesEnum() bool + func (d *ArgDefinition) ValueInputs(val string) bool + type BuildInfo struct + BuildDate string + Description string + Name string + Version string + type CodegenFile struct + Content string + Name string + type Context struct + Args map[string]string + Context context.Context + Opts map[string]string + Output Output + func (c *Context) GetArg(name string) string + func (c *Context) GetOpt(name string) (string, bool) + func (c *Context) HasOpt(name string) bool + type OptDefinition struct + Description string + Name string + WithValue bool + type Output interface + PrintColoredBlock func(color color.ConsoleColor, text string) + PrintMarkdownTable func(headers []string, rows [][]string) + type UsageExample struct + Command string + Description string