Documentation ¶
Index ¶
- Variables
- func AllCommands(builder cli.Builder) []*cobra.Command
- func NewMenuCmd(b cli.Builder) cli.CliCommand
- type App
- func (a *App) Address() dawg.Address
- func (a *App) Build(use, short string, r cli.Runner) *cli.Command
- func (a *App) Cleanup() (err error)
- func (a *App) Config() *cli.Config
- func (a *App) DB() *cache.DataBase
- func (a *App) GlobalOptions() *opts.CliFlags
- func (a *App) Init(dir string) error
- func (a *App) InitDB() (err error)
- func (a *App) Run(cmd *cobra.Command, args []string) (err error)
- func (a *App) SetConfig(dir string) error
- type ErrMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = &lumberjack.Logger{ Filename: "", MaxSize: 25, MaxBackups: 10, MaxAge: 365, Compress: false, }
Logger for the cmd package
Functions ¶
func AllCommands ¶
AllCommands returns a list of all the Commands.
func NewMenuCmd ¶
func NewMenuCmd(b cli.Builder) cli.CliCommand
NewMenuCmd creates a new menu command.
Types ¶
type App ¶
type App struct { cli.CliCommand // this is also the root command client.StoreFinder // for app.store() // contains filtered or unexported fields }
App is the main app, the root command, and the Builder.
func (*App) GlobalOptions ¶ added in v0.0.3
GlobalOptions returns the variables for the app's global flags
Click to show internal directories.
Click to hide internal directories.