Documentation
¶
Overview ¶
Package env provides a task for the Go toolchain `env` command. See `go help environment`, `go help env` and the `go` command documentations at https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information and https://pkg.go.dev/cmd/go#hdr-Environment_variables for more details.
References
(1) https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information (2) https://pkg.go.dev/cmd/go#hdr-Environment_variables (3) https://pkg.go.dev/cmd/go/internal/envcmd
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is a task option.
func WithEnvVars ¶
WithEnvVars sets the names of the target environment variables.
func WithExtraArgs ¶
WithExtraArgs sets additional arguments to pass to the command.
type Options ¶
type Options struct { // EnableJSONOutput indicates whether the output should be in JSON format. EnableJSONOutput bool // EnvVars are the names of the target environment variables. EnvVars []string // contains filtered or unexported fields }
Options are task options.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task is a task for the Go toolchain `env` command. See `go help environment`, `go help env` and the `go` command documentations at https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information and https://pkg.go.dev/cmd/go#hdr-Environment_variables for more details.
References
(1) https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information (2) https://pkg.go.dev/cmd/go#hdr-Environment_variables (3) https://pkg.go.dev/cmd/go/internal/envcmd