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 ¶
Types ¶
type Command ¶
Command is used to build the command line interface.
func NewAppCommand ¶
func NewAppCommand(asset *support.Asset, config *support.Config, dbManager *record.Engine, 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.
Source Files ¶
- build.go
- cmd.go
- configdec.go
- configenc.go
- dbcreate.go
- dbdrop.go
- dbmigrate.go
- dbmigratestatus.go
- dbrollback.go
- dbschemadump.go
- dbschemaload.go
- dbseed.go
- dcdown.go
- dcrestart.go
- dcup.go
- genmigration.go
- middleware.go
- routes.go
- scaffold.go
- secret.go
- secretrotate.go
- serve.go
- setup.go
- sslsetup.go
- sslteardown.go
- start.go
- teardown.go
- work.go
Click to show internal directories.
Click to hide internal directories.