Documentation
¶
Index ¶
- type Builder
- func (b *Builder) AddCommand(path []string, cmd *cobra.Command) error
- func (b *Builder) AddPangeaCommand(config *pangea.Config, svc, pathCmd, pathAPI string, post cli.PathPost, ...)
- func (b *Builder) AddPlugin(p plugins.Plugin) error
- func (b *Builder) Build(rootCmd *cobra.Command) error
- func (b *Builder) Cmd() *cobra.Command
- func (b *Builder) GetCommand(path []string) *cobra.Command
- type CommandsMap
- type FlagAny
- type FlagArray
- type FlagBase64
- type FlagBool
- type FlagEnum
- type FlagInteger
- type FlagMap
- type PangeaFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
type CommandsMap ¶
type CommandsMap struct {
Command *cobra.Command
SubCommands map[string]*CommandsMap
}
type FlagAny ¶
type FlagAny struct {
// contains filtered or unexported fields
}
type FlagArray ¶
type FlagArray struct {
// contains filtered or unexported fields
}
type FlagBase64 ¶
type FlagBase64 struct {
// contains filtered or unexported fields
}
func (*FlagBase64) Get ¶
func (f *FlagBase64) Get() any
func (*FlagBase64) Set ¶
func (f *FlagBase64) Set(val string) error
func (*FlagBase64) String ¶
func (f *FlagBase64) String() string
func (*FlagBase64) Type ¶
func (f *FlagBase64) Type() string
type FlagEnum ¶
type FlagEnum struct {
Name string
// contains filtered or unexported fields
}
func NewFlagEnum ¶
func (*FlagEnum) Description ¶
type FlagInteger ¶
type FlagInteger struct {
// contains filtered or unexported fields
}
func (*FlagInteger) Get ¶
func (f *FlagInteger) Get() any
func (*FlagInteger) Set ¶
func (f *FlagInteger) Set(in string) error
func (*FlagInteger) String ¶
func (f *FlagInteger) String() string
func (*FlagInteger) Type ¶
func (f *FlagInteger) Type() string
type FlagMap ¶
type FlagMap struct {
// contains filtered or unexported fields
}
type PangeaFlag ¶
Click to show internal directories.
Click to hide internal directories.