chinampa/pkg/env/env.go

42 lines
1.1 KiB
Go
Raw Permalink Normal View History

2022-12-31 05:53:24 +00:00
// Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx>
// SPDX-License-Identifier: Apache-2.0
/*
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.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
// HelpStyle identifies the theme to use for help formatting.
2022-12-31 05:53:24 +00:00
var HelpStyle = "HELP_STYLE"
// Verbose enables verbose printing of log entries.
2022-12-31 05:53:24 +00:00
var Verbose = "VERBOSE"
// Silent disables all printing of log entries, except for errors.
2022-12-31 05:53:24 +00:00
var Silent = "SILENT"
// NoColor disables printing of color escape codes in help and log entries.
2022-12-31 05:53:24 +00:00
var NoColor = "NO_COLOR"
// ForceColor enables printing of color escape codes in help and log entries.
2022-12-31 05:53:24 +00:00
var ForceColor = "COLOR"
// ValidationDisabled disables validation on arguments and options.
2022-12-31 05:53:24 +00:00
var ValidationDisabled = "SKIP_VALIDATION"
// Debug enables printing of debugging information.
2022-12-31 05:53:24 +00:00
var Debug = "DEBUG"