vars

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Auth is the global computed authentication config
	Auth types.RootAuth = makeRootAuth()

	// UserAuth is the auth config stored only in the user config dir
	UserAuth types.RootAuth = makeRootAuth()

	// UserAuthOnly is true when no outside auth files are loaded or provided on
	// the CLI args
	UserAuthOnly bool = true

	// UserAuthLoaded is true when the default user auth has been loaded
	UserAuthLoaded bool = false
)
View Source
var (
	// BuildVersion is the version this application was built with. By default
	// it is set to "dev", but it gets overridden by goreleaser
	BuildVersion = "dev"

	// BuildCommit is the commit this application was built on. By default it is
	// set to "unknown", but it gets overridden by goreleaser
	BuildCommit = "unknown"
)
View Source
var (
	// Workdir is the working directory this program was started with
	Workdir string

	// IsCICD is true when the --cicd flag is enabled or the CICD environment
	// variable is non-null. The environment variable check is here in this
	// file, but the CLI flag definition is in cmd/root.go
	IsCICD bool

	// IsTTY is true when the program is running in a TTY and theoretically is
	// being piloted by a user. If IsTTY is false then there should not be any
	// CLI prompts
	IsTTY bool = isatty.IsTerminal(os.Stdout.Fd())
)

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