2022-12-31 05:53:24 +00:00
|
|
|
// Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx>
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Package env holds environment variable names that are meant to be overridden by implementations.
|
|
|
|
|
|
|
|
# example
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "git.rob.mx/nidito/chinampa/env"
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
env.HelpUnstyled = "MY_APP_PLAIN_HELP"
|
|
|
|
env.HelpStyle = "MY_APP_HELP_STYLE"
|
|
|
|
env.Verbose = "MY_APP_VERBOSE"
|
|
|
|
env.Silent = "MY_APP_SILENT"
|
|
|
|
env.ValidationDisabled = "MY_APP_SKIP_VALIDATION"
|
|
|
|
}
|
|
|
|
*/
|
2022-12-31 05:53:24 +00:00
|
|
|
package env
|
|
|
|
|
2023-03-21 06:28:25 +00:00
|
|
|
// HelpUnstyled means help will not be colored nor formatted for a TTY.
|
2022-12-31 05:53:24 +00:00
|
|
|
var HelpUnstyled = "HELP_STYLE_PLAIN"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// HelpStyle identifies the theme to use for help formatting.
|
2022-12-31 05:53:24 +00:00
|
|
|
var HelpStyle = "HELP_STYLE"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// Verbose enables verbose printing of log entries.
|
2022-12-31 05:53:24 +00:00
|
|
|
var Verbose = "VERBOSE"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// Silent disables all printing of log entries, except for errors.
|
2022-12-31 05:53:24 +00:00
|
|
|
var Silent = "SILENT"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// NoColor disables printing of color escape codes in help and log entries.
|
2022-12-31 05:53:24 +00:00
|
|
|
var NoColor = "NO_COLOR"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// ForceColor enables printing of color escape codes in help and log entries.
|
2022-12-31 05:53:24 +00:00
|
|
|
var ForceColor = "COLOR"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// ValidationDisabled disables validation on arguments and options.
|
2022-12-31 05:53:24 +00:00
|
|
|
var ValidationDisabled = "SKIP_VALIDATION"
|
2023-03-21 06:28:25 +00:00
|
|
|
|
|
|
|
// Debug enables printing of debugging information.
|
2022-12-31 05:53:24 +00:00
|
|
|
var Debug = "DEBUG"
|