Documentation
¶
Index ¶
- type Argument
- type Arguments
- type CobraCommand
- func (c *CobraCommand) Children() []Argument
- func (c *CobraCommand) Command() *cobra.Command
- func (c *CobraCommand) Complete(words []string) []string
- func (c *CobraCommand) IsRoot() bool
- func (c *CobraCommand) Match(words []string) bool
- func (c *CobraCommand) Name() string
- func (c *CobraCommand) String() string
- type CommandLine
- type Condition
- type Flag
- type FlagSet
- type FlagValue
- type PFlag
- type PFlagSet
- type String
- type Transform
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type CobraCommand ¶
func (*CobraCommand) Children ¶
func (c *CobraCommand) Children() []Argument
func (*CobraCommand) Command ¶
func (c *CobraCommand) Command() *cobra.Command
func (*CobraCommand) Complete ¶
func (c *CobraCommand) Complete(words []string) []string
func (*CobraCommand) IsRoot ¶
func (c *CobraCommand) IsRoot() bool
func (*CobraCommand) Match ¶
func (c *CobraCommand) Match(words []string) bool
func (*CobraCommand) Name ¶
func (c *CobraCommand) Name() string
func (*CobraCommand) String ¶
func (c *CobraCommand) String() string
type CommandLine ¶
type CommandLine struct { Arguments // contains filtered or unexported fields }
func AddCobraCommand ¶
func AddCobraCommand(rootCmd *cobra.Command, name string) *CommandLine
func (*CommandLine) Complete ¶
func (c *CommandLine) Complete(words []string) []string
func (*CommandLine) IsBoolFlag ¶
func (c *CommandLine) IsBoolFlag() bool
func (*CommandLine) Set ¶
func (c *CommandLine) Set(_ string) error
func (*CommandLine) String ¶
func (c *CommandLine) String() string
func (*CommandLine) Type ¶
func (c *CommandLine) Type() string
type Flag ¶
func (*Flag) IsBoolFlag ¶
type FlagValue ¶
func NewFlagValue ¶
type PFlagSet ¶
func NewPFlagSet ¶
func NewPFlagSet(s *pflag.FlagSet, cmd *CobraCommand) *PFlagSet
Click to show internal directories.
Click to hide internal directories.