Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task for Go toolchain env command #82

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

svengreb
Copy link
Owner

Resolves #80

To support the `go env` command of the Go toolchain [1],
a new `Task` [2] has been implemented in the new `env` [3] package that
can be used through a Go toolchain `Runner` [4].
The task is customizable through the following functions:

- `WithEnv(env map[string]string) env.Option` - sets the task specific
  environment.
- `WithEnvVars(envVars ...string) env.Option` - sets the names of the
  target environment variables.
- `WithExtraArgs(extraArgs ...string) env.Option` - sets additional
  arguments to pass to the command.

[1]: https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information
[2]: https://pkg.go.dev/github.com/svengreb/wand/pkg/task#Task
[3]: https://pkg.go.dev/github.com/svengreb/wand/pkg/task/golang/env
[4]: https://pkg.go.dev/github.com/svengreb/wand/pkg/task/golang#Runner

GH-81
@svengreb svengreb force-pushed the feature/gh-81-task-for-go-env-cmd branch from a053d94 to aa09796 Compare April 23, 2021 18:52
@svengreb svengreb merged commit 5e3764a into main Apr 23, 2021
@svengreb svengreb deleted the feature/gh-81-task-for-go-env-cmd branch April 23, 2021 18:55
@svengreb svengreb removed their assignment Apr 23, 2021
@svengreb svengreb changed the title Feature/gh 81 task for go env cmd Task for Go toolchain env command Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant