Documentation ¶
Index ¶
- Variables
- func Colorfy(msg string, fontcolor string, background string, effect string) string
- func ExtractProgramName(path string) string
- func JoinWithUserDir(p ...string) string
- func MergeFlagSet(fs1, fs2 *gnuflag.FlagSet) *gnuflag.FlagSet
- type AdminCommandable
- type Command
- type Commandable
- type ConfirmationCommand
- type Context
- type DeprecatedCommand
- type FlaggedCommand
- type Info
- type Lookup
- type Manager
- type MapFlag
- type Mode
- type Row
- type StringSliceFlag
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAbortCommand = errors.New("")
Functions ¶
func ExtractProgramName ¶
func JoinWithUserDir ¶
Types ¶
type AdminCommandable ¶
type AdminCommandable interface {
AdminCommands() []Command
}
Implementing the AdminCommandable interface allows extending the megamd admin command line interface
type Commandable ¶
type Commandable interface {
Commands() []Command
}
Implementing the Commandable interface allows extending the megamd command line interface
type ConfirmationCommand ¶
type ConfirmationCommand struct {
// contains filtered or unexported fields
}
func (*ConfirmationCommand) Confirm ¶
func (cmd *ConfirmationCommand) Confirm(context *Context, question string) bool
func (*ConfirmationCommand) Flags ¶
func (cmd *ConfirmationCommand) Flags() *gnuflag.FlagSet
type DeprecatedCommand ¶
type DeprecatedCommand struct { Command // contains filtered or unexported fields }
func (*DeprecatedCommand) Flags ¶
func (c *DeprecatedCommand) Flags() *gnuflag.FlagSet
func (*DeprecatedCommand) Run ¶
func (c *DeprecatedCommand) Run(context *Context) error
type FlaggedCommand ¶
type Manager ¶
func BuildBaseManager ¶
func NewManager ¶
func (*Manager) RegisterDeprecated ¶
func (*Manager) RegisterTopic ¶
type StringSliceFlag ¶
type StringSliceFlag []string
func (*StringSliceFlag) Set ¶
func (f *StringSliceFlag) Set(val string) error
func (*StringSliceFlag) String ¶
func (f *StringSliceFlag) String() string
Click to show internal directories.
Click to hide internal directories.