cli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cli holds shared helpers for command-line handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEnvDefaults

func ApplyEnvDefaults(fs *flag.FlagSet, mapping map[string]string) error

ApplyEnvDefaults fills unset flags from environment variables. Precedence: explicit flag > environment variable > flag default. mapping is flagName -> ENV_VAR. Values are run through the flag's own parser, so a bad env value fails the same way a bad flag does.

Types

This section is empty.

Jump to

Keyboard shortcuts

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