Documentation
¶
Index ¶
- Variables
- func Before(ctx context.Context, c *cli.Command) (context.Context, error)
- func Flags() []cli.Flag
- func GetCommands() []*cli.Command
- func GetSubcommands(group string) []*cli.Command
- func RegisterCommand(command *cli.Command)
- func RegisterSubcommand(group string, command *cli.Command)
- type AppVersionInfo
- type ConsoleFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var BRANCH = "dev"
BRANCH of the Version
View Source
var COMMIT = "dirty"
View Source
var NAME = "cryptkey"
NAME of the App
View Source
var SUMMARY = "v1.0.0"
SUMMARY of the Version
View Source
var VERSION = "1.0.0"
VERSION of Release
Functions ¶
func GetCommands ¶
GetCommands -- retrieves all commands assigned to the main group, sorted by name.
func GetSubcommands ¶
GetSubcommands retrieves all commands assigned to a group
func RegisterCommand ¶
RegisterCommand -- allows you to register a command under the main group
func RegisterSubcommand ¶
RegisterSubcommand allows you to register a command under a group
Types ¶
type AppVersionInfo ¶
type AppVersionInfo struct {
Name string
Version string
Branch string
Summary string
Commit string
}
AppVersionInfo --
var AppVersion AppVersionInfo
AppVersion --
type ConsoleFormatter ¶
ConsoleFormatter formats logs in a human-readable console format similar to zerolog
Click to show internal directories.
Click to hide internal directories.