{"id":16611928,"url":"https://github.com/myriad-dreamin/frs","last_synced_at":"2026-06-28T17:31:54.736Z","repository":{"id":169042705,"uuid":"644910220","full_name":"Myriad-Dreamin/frs","owner":"Myriad-Dreamin","description":"frs is a command wrapper tool.","archived":false,"fork":false,"pushed_at":"2023-05-24T20:40:12.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-20T01:58:10.330Z","etag":null,"topics":["terminal-tool","venv","virtual-environment","virtual-environment-manager"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Myriad-Dreamin.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":"2023-05-24T14:02:56.000Z","updated_at":"2025-05-25T12:05:15.000Z","dependencies_parsed_at":"2023-09-02T21:02:24.877Z","dependency_job_id":null,"html_url":"https://github.com/Myriad-Dreamin/frs","commit_stats":null,"previous_names":["myriad-dreamin/frs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Myriad-Dreamin/frs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myriad-Dreamin%2Ffrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myriad-Dreamin%2Ffrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myriad-Dreamin%2Ffrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myriad-Dreamin%2Ffrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Myriad-Dreamin","download_url":"https://codeload.github.com/Myriad-Dreamin/frs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myriad-Dreamin%2Ffrs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34898562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["terminal-tool","venv","virtual-environment","virtual-environment-manager"],"created_at":"2024-10-12T01:40:17.774Z","updated_at":"2026-06-28T17:31:54.716Z","avatar_url":"https://github.com/Myriad-Dreamin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frs\n\nfrs is a command wrapper tool.\n\n### Install\n\n```shell\ncargo install --git https://github.com/Myriad-Dreamin/frs.git\n```\n\n### Examples\n\nBefore examples:\n\n```shell\nalias frx = \"frs run --\"\n```\n\n##### Example 1: Execute with Build Command\n\nExecute the build command using cmake before executing the c++ application.\n\n```shell\nmyriad-dreamin.iris in ~/work/rust/frs\nλ(default)\n$ frs with command -- cmake --build cmake-build-debug --parallel 12 --target install\nλ(default) :: exec(cmake)\n$ frx src/bin/app\n# cmake --build cmake-build-debug --parallel 12 --target install\n[0/1] Install the project...\n-- Install configuration: \"Debug\"\n-- Installing: ./cmake-build-debug/include/absl/base/options.h\n-- Installing: ./cmake-build-debug/include/absl/base/options.h\n# src/bin/app\nRunning application...\n```\n\n##### Example 2: Execute in docker\n\nRun command inside a container\n\n```shell\nmyriad-dreamin.iris in ~/work/rust/frs\nλ(default)\n$ cat /etc/lsb-release /etc/os-release\nDISTRIB_ID=Ubuntu\nDISTRIB_RELEASE=22.04\n...\nUBUNTU_CODENAME=jammy\nλ(default)\n$ frs with docker ubuntu:18.04\nλ(default) :: ctr(ubuntu:18.04)\n$ frx cat /etc/lsb-release /etc/os-release\nDISTRIB_ID=Ubuntu\nDISTRIB_RELEASE=18.04\n...\nUBUNTU_CODENAME=bionic\n```\n\n##### Example 3: Execute with workdir and environemnt variables\n\nExecute the command with specific environment variables in a specific working directory.\n\n```shell\nmyriad-dreamin.iris in ~/work/rust/frs\nλ(default)\n$ frs with env ASAN_OPTIONS allow_addr2line=1\nλ(default) :: env(ASAN_OPTIONS)\n$ frs with workdir ~/work/rust/frs/.data/test-workdir\nλ(default) :: env(ASAN_OPTIONS) :: workdir(..test-workdir)\n$\n```\n\n##### Example 4: save and restore context\n\nSave and restore context.\n\n```shell\nmyriad-dreamin.iris in ~/work/rust/frs\nλ(default) :: env(ASAN_OPTIONS)\n$ frs save asan_option\nλ(asan_option)\n$ frs with context another_ctx\nλ(another_ctx)\n$ frs with context asan_option\nλ(asan_option)\n$ frs save app --namespace cpp_project\nλ(cpp_project::app)\n$ frs with context asan_option\nλ(asan_option)\n$\n```\n\n##### Example 5: Dry Run and Inspect Context\n\nCheck what's exactly running and the context.\n\n```shell\nmyriad-dreamin.iris in ~/work/rust/frs\nλ(frs_test)\n$ frs inspect\n# $ run \"cmake --build cmake-build-debug --parallel 12 --target install\"\n# ! core::with_command \"cmake --build cmake-build-debug --parallel 12 --target install\"\n# $ set \"FRS_KEY\"=\"test\"\n# ! core::with_env \"FRS_KEY\"=\"test\"\n# frs_env: FRS_VERSION=0.1.0\n(cmake --build cmake-build-debug --parallel 12 --target install;\n (export FRS_KEY=test;\n (((( echo 'frs placeholder' ))))))\nλ(frs_test)\n$ frs run --show -- echo '$FRS_KEY'\n(cmake --build cmake-build-debug --parallel 12 --target install;\n (export FRS_KEY=test;\n echo $FRS_KEY))\n```\n\n### Usage\n\n```\nThe cli for frs.\n\nUsage: frs [COMMAND]\n\nCommands:\n  help     Print this message or the help of the given subcommand(s)\n  inspect  Inspect context\n  run      Run with context\n  save     Save context\n  with     Manipulate context\n```\n\n### Extension\n\nThe frs `with` command can be extended using any programming language. To create an frs extension, you must create a program that reads the context either from a file system path or stdin and produces an exact context in JSON format.\n\n```shell\nλ(app)\n$ frs with ext -- python script/activate.py -- customized_arguments...\nλ(app) :: ext(python:activate)\n$ python script/activate.py --from-file ~/.confg/frs/context/default/app.json customized_arguments... # the underlying command\n```\n\nThe program should output a JSON object that represents the context, similar to the following example:\n\n```json\n{\"meta\":{\"step_log\":[{\"description\":\"core::context \\\"app\\\"\",\"prompt\":\"activate ..\\\"app\\\"\"}]},...}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyriad-dreamin%2Ffrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyriad-dreamin%2Ffrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyriad-dreamin%2Ffrs/lists"}