package
0.0.0-20241002154806-46473ffb31d0
Repository: https://github.com/thetreep/toolbox.git
Documentation: pkg.go.dev
# Functions
ConfigurationFlag creates a Flag for the cli app.
EnvironmentFlag creates a Flag for the environment handling.
GetConfigPathFromContext reads the configuration file path from context.
GetEnvironment returns environment.
GetFlagFromContext returns a flag value.
NewApplication returns a new Application ready to `Run`.
# Constants
AppAuthor is the app's author.
AppCopyright specifies the app's copyright.
ConfigurationCliFlag specifies the path of the configuration file.
DefaultConfigurationPath specifies the default path of the configuration file.
DefaultEnvironment is the default environment in which the app runs.
EnvironmentCliFlag specifies the environment in which the app runs.
# Structs
Application represents the cli application which will run when the binary is run.
Config holds informations on the application about to run.
Info holds informations on the app.