env

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Types

type Config

type Config struct {
	XML    bool
	JSON   bool
	Plain  bool
	Pretty bool
}

type EnvError

type EnvError struct {
	XMLName xml.Name `xml:"error"`
	Code    int      `xml:"code,attr"`
	Msg     string   `xml:"msg,attr"`
}

type EnvResult

type EnvResult struct {
	XMLName   xml.Name    `xml:"env"`
	Timestamp int64       `xml:"timestamp,attr"`
	Variables []EnvVar    `xml:"var,omitempty"`
	Path      []PathEntry `xml:"path_entry,omitempty"`
	Errors    []EnvError  `xml:"error,omitempty"`
}

type EnvVar

type EnvVar struct {
	XMLName    xml.Name `xml:"var"`
	Name       string   `xml:"name,attr"`
	Value      string   `xml:"value,attr"`
	Type       string   `xml:"type,attr"`
	Present    string   `xml:"present,attr"`
	Redacted   string   `xml:"redacted,attr"`
	PathExists string   `xml:"path_exists,attr,omitempty"`
}

type PathEntry

type PathEntry struct {
	XMLName xml.Name `xml:"path_entry"`
	Index   int      `xml:"index,attr"`
	Path    string   `xml:"path,attr"`
	Exists  string   `xml:"exists,attr"`
}

Jump to

Keyboard shortcuts

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