env

package
v0.9.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Reference: https://github.com/golang/go/blob/master/src/cmd/go/internal/cfg/cfg.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdEnv

func NewCmdEnv() *cobra.Command

func PrintEnv

func PrintEnv(w io.Writer, env []EnvVar)

PrintEnv prints the environment variables to w.

Types

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

An EnvVar is an environment variable Name=Value.

type Options added in v0.9.0

type Options struct {
	// contains filtered or unexported fields
}

func NewEnvOptions

func NewEnvOptions() *Options

func (*Options) Complete added in v0.9.0

func (o *Options) Complete()

func (*Options) Run added in v0.9.0

func (o *Options) Run() error

func (*Options) Validate added in v0.9.0

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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