Documentation ¶
Index ¶
Constants ¶
View Source
const ( TfmtText = "text" TfmtJson = "json" TfmtYaml = "yaml" )
Variables ¶
View Source
var ( ErrTooManyArguments = errors.New("too many arguments") ErrNotEnoughArguments = errors.New("not enough arguments") ErrIpOrAliasExpected = fmt.Errorf("IP or alias expected %w", ErrNotEnoughArguments) ErrEntryAlreadyExists = errors.New("entry already exists") ErrTooManyEntries = errors.New("too many entries found") ErrWrongArgumentValue = errors.New("wrong argument value") ErrBlockNotFound = errors.New("block not found") ErrAliasNotFound = errors.New("alias not found") ErrNotSupportedOutputFormat = errors.New("not supported output format") )
Functions ¶
func RunCliCommand ¶
func RunCliCommand(cliCmd CliCommand, cmd *cobra.Command, args []string)
Types ¶
type CliCommand ¶
type GlobalOptions ¶
type GlobalOptions struct {
OutputFormat string
}
type OutputFormat ¶
type OutputFormat int
const ( FmtText OutputFormat = iota FmtJson OutputFormat = iota FmtYaml OutputFormat = iota FmtNext OutputFormat = iota )
Click to show internal directories.
Click to hide internal directories.