cleanenv

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command cleanenv removes all environment variables that match given prefixes before running its arguments as a command.

For example, this is useful in GitHub Actions:

export GOOS=js GOARCH=wasm
cleanenv -remove-prefix GITHUB_ -- go test -cover ./...

The '-remove-prefix' flag can be repeated multiple times to remove even more environment variables.

Jump to

Keyboard shortcuts

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