cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// ExitCodeSuccess indicates the program ran successfully.
	ExitCodeSuccess = 0

	// ExitCodeErr indicates the program encountered an error.
	ExitCodeErr = 1

	// ExitCodeInterrupt indicates the program was cancelled.
	ExitCodeInterrupt = 2
)

Variables

This section is empty.

Functions

func LoadHierarchicalConfig

func LoadHierarchicalConfig(cmd *cobra.Command) config.DataStoreLoaderFunc

LoadHierarchicalConfig loads data with the following precedence: * User set flag Flags (highest) * Environment variables where --flag is assumed to be PORTER_FLAG * Config file * Flag default (lowest)

Types

This section is empty.

Jump to

Keyboard shortcuts

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