Documentation ¶
Index ¶
- type Command
- func (c *Command) Channel() (fabric.Channel, error)
- func (c *Command) Context() *environment.Context
- func (c *Command) Fprint(arg ...interface{}) error
- func (c *Command) FprintOrPanic(arg ...interface{})
- func (c *Command) Fprintln(arg ...interface{}) error
- func (c *Command) FprintlnOrPanic(arg ...interface{})
- func (c *Command) Prompt() string
- func (c *Command) ResMgmt() (fabric.ResourceManagement, error)
- type FactoryProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { common.Command FactoryProvider FactoryProvider }
Command is the base for all commands
func New ¶
func New(settings *environment.Settings, p FactoryProvider) *Command
New returns a Command
func (*Command) Context ¶
func (c *Command) Context() *environment.Context
Context returns the current context
func (*Command) FprintOrPanic ¶
func (c *Command) FprintOrPanic(arg ...interface{})
FprintOrPanic displays the given args to the configured output stream. If an error occurs then this function panics.
func (*Command) FprintlnOrPanic ¶
func (c *Command) FprintlnOrPanic(arg ...interface{})
FprintlnOrPanic displays the given args to the configured output stream. If an error occurs then this function panics.
type FactoryProvider ¶
type FactoryProvider func(config *environment.Config) (fabric.Factory, error)
FactoryProvider creates a new Factory
Click to show internal directories.
Click to hide internal directories.