command
module
Version:
v0.2.4
Opens a new window with list of versions in this module.
Published: May 8, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
with-env
通过 .env 文件给命令注入环境变量, 会覆盖系统自带的环境变量。
- ~/.env
- .env
将下面文件写入到 .env
或者 ~/.env
中,然后执行 with-env wget
, wget
命令就被注入了代理。
https_proxy=http://127.0.0.1:7890
http_proxy=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
HTTP_PROXY=http://127.0.0.1:7890
使用方式
with-env curl ....
with-env wget ....
with-env git clone ...
Install
go install github.com/hellojukay/with-env@latest
Download
https://github.com/hellojukay/with-env/releases
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.