Documentation ¶
Overview ¶
Package cmdbase provides base initialization and helpers for our CLI applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RootOption ¶
type RootOption func(name string)
RootOption configures the root command.
func WithFileLogger ¶ added in v0.2.0
func WithFileLogger(config func() (*lumberjack.Logger, error)) RootOption
WithFileLogger configures logrus to emit logs to a file with rotation.
func WithInstall ¶
func WithInstall() RootOption
WithInstall configures an install command that installs the autocomplete script in the user's bashrc.
func WithUpdate ¶
func WithUpdate(pkgname string) RootOption
WithUpdate configures an update command that installs using Go the remote repository.
Click to show internal directories.
Click to hide internal directories.