Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commons ¶
type Commons struct { Development bool `short:"D" env:"DEBUG,DEV,DEVELOPMENT" help:"Enable development mode"` Level string `short:"l" env:"LOG_LEVEL" help:"Set the logging level (debug|info|warn|error|fatal)" default:"info"` Version Version `cmd:"" help:"Print version information and quit."` Licence Licence `cmd:"" help:"Print licence of the application."` }
type Licence ¶
type Licence struct {
// contains filtered or unexported fields
}
Licence represent a license with its content. It is not possible to use another primitive (like string) because kong will not recognize the licence command
func NewLicence ¶
type Option ¶
An Option applies optional changes to the CLI application.
func WithAuthors ¶
func WithDescription ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.