commands

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func NewRootCommand(c *ioc.Container) *cobra.Command

NewRootCommand returns new root command

func NewStartCommand added in v0.7.0

func NewStartCommand(cmdF *CmdFactory) *cobra.Command

NewStartCommand creates new start 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

func (*CmdFactory) Cmd

func (f *CmdFactory) Cmd(setupFunc interface{}, cmdFunc interface{}) func(cmd *cobra.Command, args []string) error

Cmd returns function compatible with RunE

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL