Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExactArgs returns an error if there are not exactly n args. ExactArgs = cobra.ExactArgs // ExactValidArgs returns an error if // there are not exactly N positional args OR // there are any positional args that are not in the `ValidArgs` field of `Command` ExactValidArgs = cobra.ExactValidArgs // MinimumNArgs returns an error if there is not at least N args. MinimumNArgs = cobra.MinimumNArgs // MaximumNArgs returns an error if there are more than N args. MaximumNArgs = cobra.MaximumNArgs // NoArgs returns an error if any args are included. NoArgs = cobra.NoArgs // OnlyValidArgs returns an error if any args are not in the list of ValidArgs. OnlyValidArgs = cobra.OnlyValidArgs // RangeArgs returns an error if the number of args is not within the expected range. RangeArgs = cobra.RangeArgs )
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is used to build the command line interface.
func NewAppCommand ¶
func NewAppCommand(embedFS embed.FS, config *support.Config, logger *support.Logger, server *pack.Server, worker *worker.Engine) *Command
NewAppCommand initializes Command instance without built-in commands.
func NewCommand ¶
func NewCommand() *Command
NewCommand initializes Command instance without built-in commands.
Click to show internal directories.
Click to hide internal directories.