env

package
v0.4.1-debug.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 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 EnvOptions

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

func NewEnvOptions

func NewEnvOptions() *EnvOptions

func (*EnvOptions) Complete

func (o *EnvOptions) Complete()

func (*EnvOptions) Run

func (o *EnvOptions) Run() error

func (*EnvOptions) Validate

func (o *EnvOptions) Validate() error

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

An EnvVar is an environment variable Name=Value.

Jump to

Keyboard shortcuts

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