{"id":17340904,"url":"https://github.com/lucaspickering/env-select","last_synced_at":"2025-04-14T19:08:42.515Z","repository":{"id":61718311,"uuid":"554338777","full_name":"LucasPickering/env-select","owner":"LucasPickering","description":"Switch between common values for environment variables","archived":false,"fork":false,"pushed_at":"2024-10-09T20:22:37.000Z","size":919,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T19:08:28.060Z","etag":null,"topics":["cli","environment-variables","rust"],"latest_commit_sha":null,"homepage":"http://env-select.lucaspickering.me/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasPickering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-10-19T16:40:14.000Z","updated_at":"2025-04-12T04:41:05.000Z","dependencies_parsed_at":"2024-02-15T00:26:44.607Z","dependency_job_id":null,"html_url":"https://github.com/LucasPickering/env-select","commit_stats":{"total_commits":107,"total_committers":1,"mean_commits":107.0,"dds":0.0,"last_synced_commit":"4d6884487b751b66341d12564ae1cf248536845f"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasPickering%2Fenv-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasPickering%2Fenv-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasPickering%2Fenv-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasPickering%2Fenv-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasPickering","download_url":"https://codeload.github.com/LucasPickering/env-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943456,"owners_count":21186958,"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":["cli","environment-variables","rust"],"created_at":"2024-10-15T15:46:57.905Z","updated_at":"2025-04-14T19:08:42.480Z","avatar_url":"https://github.com/LucasPickering.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# env-select\n\n![license](https://img.shields.io/github/license/LucasPickering/env-select)\n[![crates.io version](https://img.shields.io/crates/v/env-select.svg)](https://crates.io/crates/env-select)\n\n- [Home Page](https://env-select.lucaspickering.me)\n- [Installation](https://env-select.lucaspickering.me/book/install.html)\n- [Docs](https://env-select.lucaspickering.me/book/)\n- [Changelog](https://env-select.lucaspickering.me/changelog/)\n\nEasily switch between predefined values for arbitrary environment variables Features include (but are not limited to):\n\n- Interative prompts to select between variable profiles\n- Cascading config system, allowing for system and repo-level value definitions\n- Grab values dynamically via shell commands\n- Modify your shell environment with `es set`, or run a one-off command in a modified environment with `es run`\n- Re-use common variables between profiles with inheritance\n\n## Example\n\n```toml\n# .env-select.toml\n[applications.server.profiles.dev]\nvariables = {SERVICE1 = \"dev\", SERVICE2 = \"also-dev\"}\n\n[applications.server.profiles.prd]\nvariables = {SERVICE1 = \"prd\", SERVICE2 = \"also-prd\"}\n```\n\nNow pick an environment to export:\n\n```sh\n\u003e es set server\n❯ === dev ===\nSERVICE1=dev\nSERVICE2=also-dev\n\n  === prd ===\nSERVICE1=prd\nSERVICE2=also-prd\n\u003e echo $SERVICE1 $SERVICE2\ndev also-dev\n```\n\n## `source` Disclaimer\n\nenv-select runs as a subprocess to your shell (as all commands do), meaning it cannot modify your shell environment. To get around this, env-select will simply output shell commands that the shell plugins (or you) can then pipe to `source` (or `eval`) to modify your session.\n\nIf you think piping stuff to `source` is dangerous and sPoOky, you're right. But consider the fact that at this point, you've already downloaded and executed a mystery binary on your machine. You should've already done your due diligence.\n\n## Bugs/Feedback\n\nIf you find a bug or have a feature request, please [open an issue on GitHub](https://github.com/LucasPickering/env-select/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaspickering%2Fenv-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaspickering%2Fenv-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaspickering%2Fenv-select/lists"}