env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package env implements the env(1) coreutil: run a program in a modified environment, or print the current environment when no command is given.

Argument parsing intentionally does not use getopt because env's grammar is special: NAME=VALUE assignments and the inner command share the positional slot, and the first positional that is neither a flag nor an assignment terminates option parsing. Any subsequent NAME=VALUE-shaped argument is part of the inner command, not an env assignment. getopt/v2 has no way to express that boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (Impl) Exec

func (Impl) Exec(ctx context.Context, ec *command.ExecContext, args []string) error

Jump to

Keyboard shortcuts

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