Documentation ¶
Index ¶
- func CreateCompletionSpecCommand(options ...Opts) *cobra.Command
- func NewCmdGenFigSpec(options ...Opts) *cobra.Commanddeprecated
- type Arg
- type Args
- type BaseSuggestion
- type Names
- type Option
- type Options
- type Opts
- type Spec
- type Subcommand
- type Subcommands
- type Suggestion
- type SuggestionType
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCompletionSpecCommand ¶ added in v1.2.0
func NewCmdGenFigSpec
deprecated
Types ¶
type BaseSuggestion ¶
type BaseSuggestion struct {
// contains filtered or unexported fields
}
type Option ¶
type Option struct { *BaseSuggestion // contains filtered or unexported fields }
func (*Option) ToTypescript ¶
type Spec ¶
type Spec struct { *Subcommand // contains filtered or unexported fields }
func GenerateCompletionSpec ¶ added in v1.2.0
func MakeFigSpec
deprecated
func (*Spec) ToTypescript ¶
type Subcommand ¶
type Subcommand struct { *BaseSuggestion // contains filtered or unexported fields }
func (*Subcommand) ToTypescript ¶
func (subcommand *Subcommand) ToTypescript() string
type Subcommands ¶
type Subcommands []Subcommand
func (*Subcommands) ToTypescript ¶
func (subcommands *Subcommands) ToTypescript() string
type Suggestion ¶
type Suggestion struct { *BaseSuggestion // contains filtered or unexported fields }
type SuggestionType ¶
type SuggestionType int
const ( FOLDER SuggestionType = iota FILE ARG SUBCOMMAND OPTION SPECIAL SHORTCUT )
Click to show internal directories.
Click to hide internal directories.