Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hellojukay/env
Windows, Darwin 版本的 env 命令。 env command for Windows and Darwin .
https://github.com/hellojukay/env
Last synced: 29 days 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 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T02:51:08.000Z (over 2 years ago)
- Last Synced: 2024-06-20T03:36:50.855Z (5 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
```