{"id":20217661,"url":"https://github.com/pforret/shini","last_synced_at":"2025-04-10T15:43:46.384Z","repository":{"id":144773302,"uuid":"394022841","full_name":"pforret/shini","owner":"pforret","description":"Bash/shell .INI parser","archived":false,"fork":false,"pushed_at":"2022-01-25T18:18:00.000Z","size":817,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:36:09.320Z","etag":null,"topics":["bash","bashew","ini-parser"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pforret.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-08T17:11:28.000Z","updated_at":"2025-03-06T14:52:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"38588bf8-8345-4a13-98c1-d1c6b731c565","html_url":"https://github.com/pforret/shini","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"pforret/bashew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fshini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pforret","download_url":"https://codeload.github.com/pforret/shini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243497,"owners_count":21071054,"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":["bash","bashew","ini-parser"],"created_at":"2024-11-14T06:35:00.499Z","updated_at":"2025-04-10T15:43:46.376Z","avatar_url":"https://github.com/pforret.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![bash_unit CI](https://github.com/pforret/shini/workflows/bash_unit%20CI/badge.svg)\n![Shellcheck CI](https://github.com/pforret/shini/workflows/Shellcheck%20CI/badge.svg)\n![GH Language](https://img.shields.io/github/languages/top/pforret/shini)\n![GH stars](https://img.shields.io/github/stars/pforret/shini)\n![GH tag](https://img.shields.io/github/v/tag/pforret/shini)\n![GH License](https://img.shields.io/github/license/pforret/shini)\n[![basher install](https://img.shields.io/badge/basher-install-white?logo=gnu-bash\u0026style=flat)](https://basher.gitparade.com/package/)\n\n# shini\n\n![shini](assets/unsplash.ini.jpg)\n\n![Under Development](https://img.shields.io/badge/under-development-orange)\n\nBash .ini config file parser\n\n## 🔥 Usage\n\n```bash\nProgram: shini 0.0.4 by peter@forret.com\nUpdated: Aug  8 20:18:27 2021\nDescription: Bash .ini parser\nUsage: shini [-h] [-q] [-v] [-f] [-l \u003clog_dir\u003e] [-t \u003ctmp_dir\u003e] [-d \u003cdefault\u003e] \u003caction\u003e \u003cinput?\u003e \u003cchapter?\u003e \u003ckey?\u003e\nFlags, options and parameters:\n    -h|--help        : [flag] show usage [default: off]\n    -q|--quiet       : [flag] no output [default: off]\n    -v|--verbose     : [flag] output more [default: off]\n    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]\n    -l|--log_dir \u003c?\u003e : [option] folder for log files   [default: /Users/pforret/log/shini]\n    -t|--tmp_dir \u003c?\u003e : [option] folder for temp files  [default: /tmp/shini]\n    -d|--default \u003c?\u003e : [option] name of chapter with default values  [default: _default]\n    \u003caction\u003e         : [parameter] action to perform: chapters/setall/listall/get\n    \u003cinput\u003e          : [parameter] input file (optional)\n    \u003cchapter\u003e        : [parameter] chapter name (optional)\n    \u003ckey\u003e            : [parameter] key name (optional)\n                                  @github.com:pforret/shini.git                                             \n### TIPS \u0026 EXAMPLES\n# use `shini chapters` to list all chapters of a .ini file, e.g. to use in a loop\nshini chapters production.ini | while read -r chapter ; do (...) done\n\n# use shini setall to set all values of a chapter\nshini setall production.ini frontend # and now all the variables in .ini have been set\n\n# use shini listall to list all values of a chapter\nshini listall production.ini frontend\n# key1=value1\n# key2=value2\n\n# use shini get to get the value of 1 key for a certain chapter\nport=$(shini get production.ini frontend http_port)\n\n# you can add a chapter with default values\n[_default]\nhttp_port=80\n\n# use shini check to check if this script is ready to execute and what values the options/flags are\nshini check\n\n# use shini env to generate an example .env file\nshini env \u003e .env\n\n# use shini update to update to the latest version\nshini check\n```\n\n## ⚡️ Examples\n\n```bash\n\u003e shini .\n# start PhpStorm with current folder as project\n```\n\n## 🚀 Installation\n\nwith [basher](https://github.com/basherpm/basher)\n\n\t$ basher install pforret/shini\n\nor with `git`\n\n\t$ git clone https://github.com/pforret/shini.git\n\t$ cd shini\n\n## 📝 Acknowledgements\n\n* script created with [bashew](https://github.com/pforret/bashew)\n\n\u0026copy; 2021 Peter Forret\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fshini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpforret%2Fshini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fshini/lists"}