https://github.com/hellojukay/env
Windows, Darwin 版本的 env 命令。 env command for Windows and Darwin .
https://github.com/hellojukay/env
Last synced: 4 months ago
JSON representation
Windows, Darwin 版本的 env 命令。 env command for Windows and Darwin .
- Host: GitHub
- URL: https://github.com/hellojukay/env
- Owner: hellojukay
- Created: 2022-03-29T10:31:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T02:51:08.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T08:33:47.600Z (6 months ago)
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# env
一个 Windows, Darwin 版本的 env 命令,类似 [cross-env](https://github.com/kentcdodds/cross-env)。
# Install
```
go install github.com/hellojukay/env@latest
```# Use case
1. Show the environment:
```
env
```
2. Clear the environment and run a program:
```
env -i program
```
3. Remove variable from the environment and run a program:
```
env -u variable program
```
4. Set multiple variables and run a program:
```
env variable1=value variable2=value variable3=value program
```