Documentation
¶
Overview ¶
file: pkg/command/root.go
file: pkg/command/set.go
Index ¶
- Variables
- func ProviderCommander() interfaces.Commander
- type Commander
- type Serve
- func (s *Serve) Execute() error
- func (s *Serve) Flags() *pflag.FlagSet
- func (s *Serve) GetCobraCmd() *cobra.Command
- func (s *Serve) PersistentFlags() *pflag.FlagSet
- func (s *Serve) PersistentPreRun(hook func(*cobra.Command, []string)) interfaces.Serve
- func (s *Serve) PersistentPreRunE(hook func(*cobra.Command, []string) error) interfaces.Serve
- func (s *Serve) Run(cmd *cobra.Command, args []string)
- func (s *Serve) RunE(cmd *cobra.Command, args []string) error
- func (s *Serve) WithExample(example string) interfaces.Serve
- func (s *Serve) WithLong(description string) interfaces.Serve
- func (s *Serve) WithPostRunHook(hook func()) interfaces.Serve
- func (s *Serve) WithRun(run func(cmd *cobra.Command, args []string)) interfaces.Serve
- func (s *Serve) WithRunE(run func(cmd *cobra.Command, args []string) error) interfaces.Serve
- func (s *Serve) WithShort(description string) interfaces.Serve
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( NewCommander, )
Functions ¶
func ProviderCommander ¶
func ProviderCommander() interfaces.Commander
Types ¶
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
func NewCommander ¶
func NewCommander() *Commander
func (*Commander) AddCommand ¶
func (c *Commander) AddCommand(cmd interfaces.Command)
type Serve ¶
type Serve struct {
// contains filtered or unexported fields
}
func (*Serve) GetCobraCmd ¶
func (*Serve) PersistentFlags ¶
func (*Serve) PersistentPreRun ¶
func (*Serve) PersistentPreRunE ¶
func (*Serve) WithExample ¶
func (s *Serve) WithExample(example string) interfaces.Serve
func (*Serve) WithPostRunHook ¶
func (s *Serve) WithPostRunHook(hook func()) interfaces.Serve
Click to show internal directories.
Click to hide internal directories.