runtime

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package runtime presents environment related information useful during your program's runtime.

Index

Constants

This section is empty.

Variables

View Source
var Executable = "chinampa"

Executable is the name of our binary, and should be set using `chinampa.Execute(config chinampa.Config)`.

Functions

func ColorEnabled

func ColorEnabled() bool

ColorEnabled tells if colorizing output was requested.

func DebugEnabled

func DebugEnabled() bool

DebugEnabled tells if debugging was requested.

func EnvironmentMap

func EnvironmentMap() map[string]string

EnvironmentMap returns a map of environment keys for color, debugging and verbosity and their values, ready for `os.Setenv`.

func HelpStyle

func HelpStyle() string

HelpStyle returns the style to use when rendering help.

func ResetParsedFlagsCache

func ResetParsedFlagsCache()

ResetParsedFlagsCache resets the cached parsed global flags.

func SilenceEnabled

func SilenceEnabled() bool

SilenceEnabled tells if silencing of output was requested.

func ValidationEnabled

func ValidationEnabled() bool

DebugEnabled tells if debugging was requested.

func VerboseEnabled

func VerboseEnabled() bool

VerboseEnabled tells if verbose output was requested.

Types

This section is empty.

Jump to

Keyboard shortcuts

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