Documentation
¶
Index ¶
- func Context() context.Context
- func EnvCommand() *cobra.Command
- func HandleError(err error)
- func LoadEnv(pp ...string) error
- func ProvisionCommand(cffn func() error) *cobra.Command
- func RootCommand(ppRunEfn func() error) *cobra.Command
- func ServeCommand(runEfn func() error) *cobra.Command
- func UpgradeCommand(dbfn func() error) *cobra.Command
- func VersionCommand() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶
Context is small wrapper that returns sig-term bound context
This can be used as (proper) background context that properly terminates all subroutines.
func HandleError ¶
func HandleError(err error)
func LoadEnv ¶
LoadEnv loads env-variables (KEY=VAL) from provided files and paths (by searching for .env file in the given path)
Please note that loaded values DO NOT OVERRIDE the existing environmental variables
func ProvisionCommand ¶
func RootCommand ¶
RootCommand creates root command with a simple persistent-pre-run callback
Callback is called when not executed with help subcommand
func ServeCommand ¶
func UpgradeCommand ¶
func VersionCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.