env

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

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"
}

Index

Constants

This section is empty.

Variables

View Source
var Debug = "DEBUG"

Debug enables printing of debugging information.

View Source
var ForceColor = "COLOR"

ForceColor enables printing of color escape codes in help and log entries.

View Source
var HelpStyle = "HELP_STYLE"

HelpStyle identifies the theme to use for help formatting.

View Source
var NoColor = "NO_COLOR"

NoColor disables printing of color escape codes in help and log entries.

View Source
var Silent = "SILENT"

Silent disables all printing of log entries, except for errors.

View Source
var ValidationDisabled = "SKIP_VALIDATION"

ValidationDisabled disables validation on arguments and options.

View Source
var Verbose = "VERBOSE"

Verbose enables verbose printing of log entries.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL