{"id":17121410,"url":"https://github.com/hellojukay/with-env","last_synced_at":"2025-03-22T18:33:26.294Z","repository":{"id":57658200,"uuid":"467327374","full_name":"hellojukay/with-env","owner":"hellojukay","description":"给命令注入环境变量， 支持 Darwin, Linux, Windows 系统，命令行科学上网 ?","archived":false,"fork":false,"pushed_at":"2023-08-07T13:35:14.000Z","size":17,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-21T23:33:56.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellojukay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-08T02:00:42.000Z","updated_at":"2024-09-10T06:06:34.000Z","dependencies_parsed_at":"2024-06-20T13:06:08.844Z","dependency_job_id":"55990936-e9ab-4a5b-9a7b-9f474ebc0706","html_url":"https://github.com/hellojukay/with-env","commit_stats":null,"previous_names":["hellojukay/with-proxy"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fwith-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fwith-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fwith-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fwith-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellojukay","download_url":"https://codeload.github.com/hellojukay/with-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832291,"owners_count":16888209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T18:02:09.726Z","updated_at":"2024-10-28T13:32:12.569Z","avatar_url":"https://github.com/hellojukay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# with-env\n[![check](https://github.com/hellojukay/with-env/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/hellojukay/with-env/actions/workflows/go.yml)\n\n通过 .env 文件给命令注入环境变量, 会覆盖系统自带的环境变量。\n\n1. ~/.env\n2. .env\n\n将下面文件写入到 `.env` 或者 `~/.env` 中，然后执行 `with-env wget` ， `wget` 命令就被注入了代理。\n```\nhttps_proxy=http://127.0.0.1:7890\nhttp_proxy=http://127.0.0.1:7890\nno_proxy=localhost,127.0.0.1\n\nHTTPS_PROXY=http://127.0.0.1:7890\nHTTP_PROXY=http://127.0.0.1:7890\nNO_PROXY=localhost,127.0.0.1\n```\n使用方式\n```\nwith-env curl ....\nwith-env wget ....\nwith-env git clone ...\n````\n\n# Install\n```\ngo install github.com/hellojukay/with-env@latest\n```\n\n# Download\n[https://github.com/hellojukay/with-env/releases](https://github.com/hellojukay/with-env/releases)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojukay%2Fwith-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellojukay%2Fwith-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojukay%2Fwith-env/lists"}