Documentation ¶
Index ¶
- func NewBuildCommand(cmdF *CmdFactory) *cobra.Command
- func NewDropCommand(cmdF *CmdFactory) *cobra.Command
- func NewListCommand(cmdF *CmdFactory) *cobra.Command
- func NewMountCommand(cmdF *CmdFactory) *cobra.Command
- func NewRootCommand(c *ioc.Container) *cobra.Command
- func NewStartCommand(cmdF *CmdFactory) *cobra.Command
- func NewStopCommand(cmdF *CmdFactory) *cobra.Command
- func NewTagCommand(cmdF *CmdFactory) *cobra.Command
- type CmdFactory
- func (f *CmdFactory) AddFilterFlags(cmd *cobra.Command, defaultTypes []string) *config.FilterFactory
- func (f *CmdFactory) AddFormatFlags(cmd *cobra.Command) *config.FormatFactory
- func (f *CmdFactory) AddStorageFlags(cmd *cobra.Command) *config.StorageFactory
- func (f *CmdFactory) Cmd(setupFunc interface{}, cmdFunc interface{}) func(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuildCommand ¶
func NewBuildCommand(cmdF *CmdFactory) *cobra.Command
NewBuildCommand creates new build command.
func NewDropCommand ¶
func NewDropCommand(cmdF *CmdFactory) *cobra.Command
NewDropCommand returns new drop command.
func NewListCommand ¶
func NewListCommand(cmdF *CmdFactory) *cobra.Command
NewListCommand returns new list command.
func NewMountCommand ¶
func NewMountCommand(cmdF *CmdFactory) *cobra.Command
NewMountCommand creates new mount command.
func NewRootCommand ¶
NewRootCommand returns new root command.
func NewStartCommand ¶ added in v0.7.0
func NewStartCommand(cmdF *CmdFactory) *cobra.Command
NewStartCommand creates new start command.
func NewStopCommand ¶ added in v0.12.0
func NewStopCommand(cmdF *CmdFactory) *cobra.Command
NewStopCommand creates new stop command.
func NewTagCommand ¶ added in v0.2.0
func NewTagCommand(cmdF *CmdFactory) *cobra.Command
NewTagCommand returns new tag command.
Types ¶
type CmdFactory ¶
type CmdFactory struct {
// contains filtered or unexported fields
}
CmdFactory is a wrapper around cobra RunE.
func NewCmdFactory ¶
func NewCmdFactory(c *ioc.Container) *CmdFactory
NewCmdFactory returns new CmdFactory.
func (*CmdFactory) AddFilterFlags ¶
func (f *CmdFactory) AddFilterFlags(cmd *cobra.Command, defaultTypes []string) *config.FilterFactory
AddFilterFlags adds filtering flags to command.
func (*CmdFactory) AddFormatFlags ¶
func (f *CmdFactory) AddFormatFlags(cmd *cobra.Command) *config.FormatFactory
AddFormatFlags adds formatting flags to command.
func (*CmdFactory) AddStorageFlags ¶
func (f *CmdFactory) AddStorageFlags(cmd *cobra.Command) *config.StorageFactory
AddStorageFlags adds storage flags to command.
Click to show internal directories.
Click to hide internal directories.