cmds

package
v0.0.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asker

type Asker interface {
	AskBool(question string, defaultAnswer string) (bool, error)
	AskChoice(question string, choices []string, defaultAnswer string) (string, error)
	AskInt(question string, minValue int64, maxValue int64, defaultAnswer string, validator func(int64) error) (int64, error)
	AskString(question string, defaultAnswer string, validator func(string) error) (string, error)
	AskPasswordOnce(question string) string
}

type CmdBatch

type CmdBatch struct {
	Global *CmdGlobal
}

func (*CmdBatch) Command

func (c *CmdBatch) Command() *cobra.Command

type CmdGlobal

type CmdGlobal struct {
	Asker Asker

	Cmd *cobra.Command

	FlagForceLocal bool
	FlagHelp       bool
	FlagVersion    bool
	// contains filtered or unexported fields
}

func (*CmdGlobal) CheckArgs

func (c *CmdGlobal) CheckArgs(cmd *cobra.Command, args []string, minArgs int, maxArgs int) (bool, error)

func (*CmdGlobal) CheckConfigStatus

func (c *CmdGlobal) CheckConfigStatus() error

func (*CmdGlobal) PreRun

func (c *CmdGlobal) PreRun(cmd *cobra.Command, args []string) error

type CmdInstance

type CmdInstance struct {
	Global *CmdGlobal
}

func (*CmdInstance) Command

func (c *CmdInstance) Command() *cobra.Command

type CmdInstanceOverride

type CmdInstanceOverride struct {
	Global *CmdGlobal
}

func (*CmdInstanceOverride) Command

func (c *CmdInstanceOverride) Command() *cobra.Command

type CmdNetwork

type CmdNetwork struct {
	Global *CmdGlobal
}

func (*CmdNetwork) Command

func (c *CmdNetwork) Command() *cobra.Command

type CmdQuery

type CmdQuery struct {
	Global *CmdGlobal
	// contains filtered or unexported fields
}

func (*CmdQuery) Command

func (c *CmdQuery) Command() *cobra.Command

func (*CmdQuery) Run

func (c *CmdQuery) Run(cmd *cobra.Command, args []string) error

type CmdQueue

type CmdQueue struct {
	Global *CmdGlobal
}

func (*CmdQueue) Command

func (c *CmdQueue) Command() *cobra.Command

type CmdSource

type CmdSource struct {
	Global *CmdGlobal
}

func (*CmdSource) Command

func (c *CmdSource) Command() *cobra.Command

type CmdTarget

type CmdTarget struct {
	Global *CmdGlobal
}

func (*CmdTarget) Command

func (c *CmdTarget) Command() *cobra.Command

Jump to

Keyboard shortcuts

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