cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "unknown"
	BuildDate = "unknown"
)

Set via -ldflags at build time.

Functions

func Execute

func Execute() error

func OutputDotenv

func OutputDotenv(pairs []EnvPair, path string) error

OutputDotenv writes or updates a .env file at the given path.

func OutputJSON

func OutputJSON(pairs []EnvPair, w *os.File) error

OutputJSON writes environment pairs as JSON to the given writer.

func OutputShell

func OutputShell(pairs []EnvPair, w *os.File) error

OutputShell writes export statements to the given writer.

Types

type EnvPair

type EnvPair struct {
	Key   string
	Value string
}

EnvPair represents a key-value pair for environment variable output.

func ResolveEnvPairs

func ResolveEnvPairs(cli, token, baseURL, envKey, envBase string) []EnvPair

ResolveEnvPairs determines the environment variable pairs for the given CLI target. This is the legacy resolution path using hardcoded provider mappings. New code should use resolveEnvPairsWithConfig which reads from providers.yaml.

Jump to

Keyboard shortcuts

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