{"id":43953644,"url":"https://github.com/m0090-dev/eec","last_synced_at":"2026-04-02T16:26:07.844Z","repository":{"id":297018827,"uuid":"995360525","full_name":"m0090-dev/eec","owner":"m0090-dev","description":"A tool for running specific programs with temporary environment settings.","archived":false,"fork":false,"pushed_at":"2026-03-28T08:03:01.000Z","size":118082,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"beta/stable","last_synced_at":"2026-03-28T11:49:26.984Z","etag":null,"topics":["cli","environment-management","go","golang","json","mage","toml","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/m0090-dev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-03T11:11:40.000Z","updated_at":"2026-03-28T08:02:44.000Z","dependencies_parsed_at":"2025-10-29T11:32:25.216Z","dependency_job_id":"25c4b8e8-420c-4d6c-b384-831f5f213669","html_url":"https://github.com/m0090-dev/eec","commit_stats":null,"previous_names":["m0090-dev/env-exec-go","m0090-dev/eec-go","m0090-dev/eec"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/m0090-dev/eec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0090-dev%2Feec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0090-dev%2Feec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0090-dev%2Feec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0090-dev%2Feec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0090-dev","download_url":"https://codeload.github.com/m0090-dev/eec/tar.gz/refs/heads/beta/stable","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0090-dev%2Feec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-management","go","golang","json","mage","toml","yaml"],"created_at":"2026-02-07T04:05:28.300Z","updated_at":"2026-04-02T16:26:07.832Z","avatar_url":"https://github.com/m0090-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eec (env-exec) \n\n`eec` is a **Go-based Environment Execution Controller**.  \nIt allows you to safely manage and execute environments based on configuration files (TOML/YAML/JSON/.env) without polluting your system environment.  \n\nWith `eec`, you can:\n- Run programs with temporary environments defined in configuration files  \n- Group multiple environments under \"tags\" for easy access  \n- Generate utility scripts for quick launching  \n- Use interactive or restart modes for flexible workflow  \n- Build the CLI, GUI, and libraries using `mage` (`mage buildcli`, `mage buildgui`, `mage buildlib`)\n\n---\n\n## Features\n- Configuration-file-based environment definitions (TOML/YAML/JSON/.env)\n- Tags for grouping and easy execution\n- Script generation for shortcut commands\n- Safe execution without modifying the global system\n- Interactive REPL and restart functionality with state management\n- Build automation using `mage`:\n  - `mage buildcli debug` / `mage buildcli release`\n  - `mage buildgui debug` / `mage buildgui release`\n  - `mage buildlib debug` / `mage buildlib release`\n  - **Note:** On Windows, `GOOS=linux` is **not supported** for `mage buildlib`\n\n---\n\n## Core Commands\n\n### 1. run [command] [flags]\nRun a program with a given environment.\n\nExample:\neec run -c test.toml -p powershell -a \"-NoExit\",\"-Command\",\"Write-Output 'hello world'\"\n\n\nEffect:\n- Loads environment from `test.toml`\n- Launches `powershell` and runs `echo hello world`\n- The environment is temporary and does not affect the system globally\n\n---\n\n### 2. tag add [tag name] [flags]\nRegister a configuration or program as a reusable tag.\n\nExample:\neec tag add dev -i \"base-dev.toml,go-dev.toml,python-dev.toml\"\neec tag add dev -i \"base-dev.toml,testTag1,testTag2\"\n\nEffect:\n- Creates a `dev` tag that combines multiple TOML configurations\n- Allows easy launching with `--tag dev`\n\n---\n\n### 3. tag list\nList all registered tags.\n\nExample:\neec tag list\n\nEffect:\n- Shows all tags currently available in the system\n\n---\n\n### 4. tag read [tag name]\nRead the details of a specific tag.\n\nExample:\neec tag read dev\n\nEffect:\n- Displays the configuration and imports associated with the `dev` tag\n\n---\n\n---\n\n### 5. tree [tag name]\n\nExample:\neec tree dev\n\nEffect:\n- Displays the dependency tree for the specified tag.\n- Shows which configuration files and sub-tags are imported.\n- Useful for understanding and debugging complex environment setups.\n\nDescription:\nThe `tree` command reads the metadata of a tag and prints its configuration dependency structure in a hierarchical (tree-like) format.\nThis helps visualize how multiple TOML/YAML/JSON files are combined to form a complete environment.\n\nExample Output:\nDependency tree for tag: dev\n└── Imported tag: dev-base\n    └── Imported file: base-dev.toml\n        ├── Env: PATH\n        ├── Env: INCLUDE\n        └── Env: LIB\n└── Imported tag: dev-lang\n    ├── Imported file: go-dev.toml\n    ├── Imported file: rust-dev.toml\n    └── Imported file: python-dev.toml\n└── Imported tag: dev-tools\n    ├── Imported file: use-tools-dev.toml\n    └── Imported file: gnu-tools-dev.toml\n\nUse Case:\nIdeal for reviewing how a tag aggregates its environment definitions, confirming imports, and avoiding redundant or conflicting variable settings.\n\n---\n\n### 6. run with --tag\nRun a program using an existing tag.\n\nExample:\neec run --tag dev\n\nEffect:\n- Loads the environment linked to `dev` and runs the program defined there\n- No need to specify `--config-file` manually\n\n---\n\n### 7. gen script\nGenerate utility scripts for quick access to tags.\n\nExample:\neec gen script\n\nEffect:\n- On Windows: creates `t\u003ctag\u003e.bat`\n- On Linux/Mac: creates `t\u003ctag\u003e` shell scripts\n- For example, if `dev` exists:\n  tdev cmd\n  → runs `cmd` with the `dev` environment\n\n---\n\n\n## Purpose\n\n- Run environments without polluting the system\n- Use temporary configurations for testing and isolated development\n- Manage complex multi-language setups through configuration files and tags\n- Improve usability through generated scripts\n- Support safe and flexible workflows with REPL and restart features\n- Automate building of CLI, GUI, and libraries via `mage`\n\n---\n\n## Summary\n\n`eec (env-exec)` is not just a tag manager,  \nbut a **Go-based tool for cleanly managing, isolating, and executing environments**.  \n\nIt is especially useful for testing, multi-environment development, and scenarios where you need clean separation from the system configuration.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0090-dev%2Feec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0090-dev%2Feec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0090-dev%2Feec/lists"}