env

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package env provides the one boolean environment-variable parsing rule used across gridctl. Boolean env vars (kill switches, experimental flag overrides) accept exactly the strconv.ParseBool vocabulary: 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. Anything else is a parse error the caller surfaces as a warning; it never silently means false.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name string) (*bool, error)

Bool reads a boolean environment variable. The three outcomes are distinct on purpose:

  • unset or empty: (nil, nil) — the variable expresses no opinion and the caller falls back to its config-derived value
  • parseable: (&value, nil)
  • anything else: (nil, error) — the caller should warn and fall back, never treat the malformed value as false

Types

This section is empty.

Jump to

Keyboard shortcuts

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