Documentation
¶
Index ¶
- func New() *redant.Command
- type AliasDef
- func (a AliasDef) MarshalYAML() (interface{}, error)
- func (a AliasDef) MaxPlaceholderIndex() int
- func (a AliasDef) RequiredArgCount() int
- func (a AliasDef) Summary() string
- func (a AliasDef) Templates() []string
- func (a *AliasDef) UnmarshalYAML(value *yaml.Node) error
- func (a AliasDef) UsageSuffix() string
- type CommandEntry
- type CommandHandler
- type GGCState
- type Registry
- type StateStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliasDef ¶
func (AliasDef) MarshalYAML ¶
func (AliasDef) MaxPlaceholderIndex ¶
func (AliasDef) RequiredArgCount ¶
func (AliasDef) UsageSuffix ¶
type CommandEntry ¶
type CommandEntry struct {
Key string
Usage string
Description string
Handler CommandHandler
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) List ¶
func (r *Registry) List() []CommandEntry
func (*Registry) Register ¶
func (r *Registry) Register(entry CommandEntry)
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
func NewStateStore ¶
func NewStateStore() *StateStore
func (*StateStore) Load ¶
func (s *StateStore) Load() (*GGCState, error)
func (*StateStore) Path ¶
func (s *StateStore) Path() string
func (*StateStore) Save ¶
func (s *StateStore) Save(state *GGCState) error
Click to show internal directories.
Click to hide internal directories.