{"id":16688494,"url":"https://github.com/hoijui/repvar","last_synced_at":"2025-04-09T16:43:36.270Z","repository":{"id":57660238,"uuid":"392346485","full_name":"hoijui/repvar","owner":"hoijui","description":"A simple CLI filter to replace variables of the style `${KEY}` in text with their respective value.","archived":false,"fork":false,"pushed_at":"2025-02-08T09:19:51.000Z","size":315,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T18:54:11.663Z","etag":null,"topics":["cli","fchh","interfacer-project-eu","interfacer-project-eu-wp4-3","oseg","simple","text-processing","text-replacer","tool","unix-style"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoijui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-08-03T14:32:10.000Z","updated_at":"2025-02-08T09:19:54.000Z","dependencies_parsed_at":"2023-01-31T06:31:19.806Z","dependency_job_id":"66fdf5b1-4a05-409c-a240-f8a8c5be93af","html_url":"https://github.com/hoijui/repvar","commit_stats":{"total_commits":168,"total_committers":1,"mean_commits":168.0,"dds":0.0,"last_synced_commit":"d7e53b5e7d37c287a9439e9d8c4d5507c39b46c4"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoijui%2Frepvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoijui%2Frepvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoijui%2Frepvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoijui%2Frepvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoijui","download_url":"https://codeload.github.com/hoijui/repvar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574088,"owners_count":20960495,"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","fchh","interfacer-project-eu","interfacer-project-eu-wp4-3","oseg","simple","text-processing","text-replacer","tool","unix-style"],"created_at":"2024-10-12T15:43:57.164Z","updated_at":"2025-04-09T16:43:36.240Z","avatar_url":"https://github.com/hoijui.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2021 - 2023 Robin Vobruba \u003choijui.quaero@gmail.com\u003e\n\nSPDX-License-Identifier: CC0-1.0\n--\u003e\n\n# `repvar` - Variable replacing, UNIX-style text filter\n\n[![License: AGPL-3.0-or-later](\n    https://img.shields.io/badge/License-AGPL%203.0+-blue.svg)](\n    LICENSE.txt)\n[![REUSE status](\n    https://api.reuse.software/badge/github.com/hoijui/repvar)](\n    https://api.reuse.software/info/github.com/hoijui/repvar)\n[![Repo](\n    https://img.shields.io/badge/Repo-GitHub-555555\u0026logo=github.svg)](\n    https://github.com/hoijui/repvar)\n[![Package Releases](\n    https://img.shields.io/crates/v/repvar.svg)](\n    https://crates.io/crates/repvar)\n[![Documentation Releases](\n    https://docs.rs/repvar/badge.svg)](\n    https://docs.rs/repvar)\n[![Dependency Status](\n    https://deps.rs/repo/github/hoijui/repvar/status.svg)](\n    https://deps.rs/repo/github/hoijui/repvar)\n[![Build Status](\n    https://github.com/hoijui/repvar/workflows/build/badge.svg)](\n    https://github.com/hoijui/repvar/actions)\n\n[![In cooperation with FabCity Hamburg](\n    https://raw.githubusercontent.com/osegermany/tiny-files/master/res/media/img/badge-fchh.svg)](\n    https://fabcity.hamburg)\n[![In cooperation with Open Source Ecology Germany](\n    https://raw.githubusercontent.com/osegermany/tiny-files/master/res/media/img/badge-oseg.svg)](\n    https://opensourceecology.de)\n\nA tiny CLI tool that replaces variables of the style `${KEY}`\nin text with their respective value.\nIt can also be used as a rust library.\n\nFor the CLI tool,\nthe variables can be read from the environment\nor be directly supplied through CLI switches,\nlike `-Dkey=value`.\n\n\u003e **NOTE** \\\n\u003e The author is a rust-newb.\n\u003e This crate probably only makes sense for himself,\n\u003e and it is not using the power of rust as should be.\n\u003e It also could probably be written in just 10 lines of code,\n\u003e using one or two regexes, not loosing any performance.\n\n## Usage\n\n### Simplisitc\n\n```bash\n$ export KEY_A=\"replacement\"   # setting an env.-variable\n$ echo 'Text ${KEY_A}.' \\      # input text\n    | repvar --env             # replacing variables\nText replacement.              # output\n```\n\n### Slightly more elaborate\n\n```bash\n$ export first=\"the environment\"\n$ echo 'Variables from ${first}, ${second}, ${not_supplied} and $${quoted}.' \\\n    | repvars --env -D\"second=the CLI\"\nVariables from the environment, the CLI, ${not_supplied} and ${quoted}.\n```\n\nMore usage info can be seen when running:\n\n```bash\nrepvars --help\n```\n\n## Building\n\n```bash\n# To get a binary for your system\ncargo build --release\n\n# To get a 64bit binary that is portabel to all Linux systems\nscripts/build\n```\n\n## Testing\n\nTo run unit-, doc- and integration-tests:\n\n```bash\nscripts/test\n```\n\n## Similar projects\n\n- More powerful string templating engine,\n  but very much in line with the unix philosophy as well\n  \u003chttps://github.com/nilsmartel/string\u003e\n\n## Funding\n\nThis project was funded by the European Regional Development Fund (ERDF)\nin the context of the [INTERFACER Project](https://www.interfacerproject.eu/),\nfrom August 2021 (project start)\nuntil March 2023.\n\n![Logo of the EU ERDF program](\n    https://cloud.fabcity.hamburg/s/TopenKEHkWJ8j5P/download/logo-eu-erdf.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoijui%2Frepvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoijui%2Frepvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoijui%2Frepvar/lists"}