Documentation
¶
Overview ¶
Package cli is responsible for the abstraction layer representing each command grouping
Package cli represents the CLI command grouping ¶
Package cli represents the CLI command grouping ¶
Package cli represents the CLI command grouping ¶
Package cli represents the CLI command grouping
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHelpCommand ¶
func NewHelpCommand() *helpCommand
Types ¶
type AbstractCommand ¶
type AbstractCommand interface { // Run runs the command Run() error // Is checks if the string is representative of the command Is(string) bool // Init is an initializer for the command given the trailing args Init([]string) error // Name is the command name (for debugging) Name() string }
AbstractCommand represents a CLI grouping (e.g.: run as server, run as CLI, etc)
func ParseInputs ¶
func ParseInputs() (AbstractCommand, error)
ParseInputs is a helper method which parses input arguments. It is effectively a factory method.
type BuildCommand ¶
type BuildCommand struct {
// contains filtered or unexported fields
}
BuildCommand runs as build. This is in place to support backward-compatibility with recipes invocation.
func NewBuildCommand ¶
func NewBuildCommand() *BuildCommand
func (*BuildCommand) Init ¶
func (cc *BuildCommand) Init(args []string) error
func (*BuildCommand) Is ¶
func (cc *BuildCommand) Is(group string) bool
func (*BuildCommand) Name ¶
func (cc *BuildCommand) Name() string
func (*BuildCommand) Run ¶
func (cc *BuildCommand) Run() error
Run runs the commands to publish test results
type CLICommand ¶
type CLICommand struct {
// contains filtered or unexported fields
}
CLICommand runs in CLI mode. This will only be used for local debugging, not deployment.
func NewCLICommand ¶
func NewCLICommand() *CLICommand
func (*CLICommand) Init ¶
func (cc *CLICommand) Init(args []string) error
func (*CLICommand) Is ¶
func (cc *CLICommand) Is(group string) bool
func (*CLICommand) Name ¶
func (cc *CLICommand) Name() string
func (*CLICommand) Run ¶
func (cc *CLICommand) Run() error
type ManualCommand ¶
type ManualCommand struct {
// contains filtered or unexported fields
}
ManualCommand submits manual SHAs into the firestore.
func NewManualCommand ¶
func NewManualCommand() *ManualCommand
func (*ManualCommand) Init ¶
func (cc *ManualCommand) Init(args []string) error
func (*ManualCommand) Is ¶
func (cc *ManualCommand) Is(group string) bool
func (*ManualCommand) Name ¶
func (cc *ManualCommand) Name() string
func (*ManualCommand) Run ¶
func (cc *ManualCommand) Run() error
type RevertCommand ¶
type RevertCommand struct {
// contains filtered or unexported fields
}
RevertCommand runs revert. This is only used for reversions in prod/staging.
func NewRevertCommand ¶
func NewRevertCommand() *RevertCommand
func (*RevertCommand) Init ¶
func (cc *RevertCommand) Init(args []string) error
func (*RevertCommand) Is ¶
func (cc *RevertCommand) Is(group string) bool
func (*RevertCommand) Name ¶
func (cc *RevertCommand) Name() string
func (*RevertCommand) Run ¶
func (cc *RevertCommand) Run() error