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 ¶
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.
Directories ¶
Path | Synopsis |
---|---|
Package cfpackages configures our internal Cloudflare R2 packages repository to install & update the command.
|
Package cfpackages configures our internal Cloudflare R2 packages repository to install & update the command. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.