Documentation
¶
Overview ¶
Package cli represents commands to run for ants-publish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 CLICommand ¶
type CLICommand struct {
// contains filtered or unexported fields
}
CLICommand executes the publish as a CLI
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
Run runs the commands to publish test results
type ServerCommand ¶
type ServerCommand struct {
// contains filtered or unexported fields
}
ServerCommand executed the provisioning as a Server
func NewServerCommand ¶
func NewServerCommand() *ServerCommand
func (*ServerCommand) Init ¶
func (sc *ServerCommand) Init(args []string) error
func (*ServerCommand) Is ¶
func (sc *ServerCommand) Is(group string) bool
func (*ServerCommand) Name ¶
func (sc *ServerCommand) Name() string
func (*ServerCommand) Run ¶
func (sc *ServerCommand) Run() error
type TestCommand ¶
type TestCommand struct {
// contains filtered or unexported fields
}
TestCommand executed the provisioning as a Server
func NewTestCommand ¶
func NewTestCommand() *TestCommand
func (*TestCommand) Init ¶
func (tc *TestCommand) Init(args []string) error
func (*TestCommand) Is ¶
func (tc *TestCommand) Is(group string) bool
func (*TestCommand) Name ¶
func (tc *TestCommand) Name() string
func (*TestCommand) Run ¶
func (tc *TestCommand) Run() error
Click to show internal directories.
Click to hide internal directories.