{"id":20355915,"url":"https://github.com/hedzr/ini-op","last_synced_at":"2025-04-12T02:50:48.480Z","repository":{"id":57512581,"uuid":"169890360","full_name":"hedzr/ini-op","owner":"hedzr","description":"small command-line tool to read/write inifile. it's used by my `git-submodule-rm` script","archived":false,"fork":false,"pushed_at":"2025-01-23T02:21:51.000Z","size":83,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T22:35:10.635Z","etag":null,"topics":["cmdr","command-line","command-line-tool","golang","ini","ini-parser","inifile"],"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/hedzr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"custom":"https://paypal.me/hezr/5"}},"created_at":"2019-02-09T17:03:50.000Z","updated_at":"2025-01-23T02:21:54.000Z","dependencies_parsed_at":"2024-02-16T04:44:50.727Z","dependency_job_id":null,"html_url":"https://github.com/hedzr/ini-op","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedzr%2Fini-op","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedzr%2Fini-op/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedzr%2Fini-op/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedzr%2Fini-op/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hedzr","download_url":"https://codeload.github.com/hedzr/ini-op/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248509192,"owners_count":21115960,"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":["cmdr","command-line","command-line-tool","golang","ini","ini-parser","inifile"],"created_at":"2024-11-14T23:14:28.094Z","updated_at":"2025-04-12T02:50:48.462Z","avatar_url":"https://github.com/hedzr.png","language":"Go","funding_links":["https://paypal.me/hezr/5"],"categories":[],"sub_categories":[],"readme":"# ini-op\n\n[![Build Status](https://travis-ci.org/hedzr/ini-op.svg?branch=master)](https://travis-ci.org/hedzr/ini-op)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hedzr/ini-op)](https://goreportcard.com/report/github.com/hedzr/ini-op)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/hedzr/ini-op.svg?label=release)\n\nRead/Write inifile. Especially deleting an entry or a section.\n\nIt's used for my [git-submodule-rm](https://gist.github.com/hedzr/eff2a3b67efa3d3c52a0fc0d292182d5).\n\n```bash\n$ bin/ini-op\nini-op is an effective tool for read/write inifile by Hedzr Yeh \u003chedzrz@gmail.com\u003e - v0.2.3\n\nUsages:\n    ini-op [Commands]  [Options] [Parent/Global Options]\n\nCommands:\n  e, entry                                        get/put entry.\n  s, section, sec                                 get/put section\n  [Misc]\n  g, generate, gen                                generators for this app.\n  version, ver                                    Show the version of this app.\n\nOptions:\n  [Misc]\n       --config=[Location of config file]         load config files from where you specified\n  -q,  --quiet                                    No more screen output. (default=false)\n  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)\n  -V,  --version                                  Show the version of this app. (default=false)\n\nType '-h' or '--help' to get command help screen.\n```\n\n## History\n\n- v0.3.9\n  - upgrade to [hedzr/cmdr](https://github.com/hedzr/cmdr) v1.11.9+\n  - security maintains since golang/x/net should be upgraded\n  - remove unavailable travis actions\n  - enable github actions\n    - packaged to github packages: [here](https://github.com/users/hedzr/packages/container/package/ini-op)\n    - keep dockerhub release\n\n## Commands\n\n[TODO] The following chapters need to be simplified.\n\n### command `section`\n\n```bash\n$ bin/ini-op section\nini-op is an effective tool for read/write inifile by Hedzr Yeh \u003chedzrz@gmail.com\u003e - v0.2.3\n\nUsages:\n    ini-op section [Sub-Commands]  [Options] [Parent/Global Options]\n\nDescription:\n    get/put section\n\nSub-Commands:\n  g, get, rd, read                                get a section\n  r, rm, remove, del, erase, delete               remove a scrtion\n\nGlobal Options:\n  [Misc]\n       --config=[Location of config file]         load config files from where you specified\n  -q,  --quiet                                    No more screen output. (default=false)\n  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)\n  -V,  --version                                  Show the version of this app. (default=false)\n\nType '-h' or '--help' to get command help screen.\n```\n\nUsages:\n\n```bash\n# print `server` section\n$ ini-op s get server $HOME/abc.ini\n# delete `server` section\n$ ini-op s rm server $HOME/abc.ini\n\n```\n\n### command `entry`\n\n```bash\n$ bin/ini-op entry\nini-op is an effective tool for read/write inifile by Hedzr Yeh \u003chedzrz@gmail.com\u003e - v0.2.3\n\nUsages:\n    ini-op entry [Sub-Commands]  [Options] [Parent/Global Options]\n\nDescription:\n    get/put entry.\n\nSub-Commands:\n  g, get, rd, read                                get an entry.\n  p, put                                          put value to an entry.\n  r, rm, remove, del, erase, delete               remove an entry.\n\nGlobal Options:\n  [Misc]\n       --config=[Location of config file]         load config files from where you specified\n  -q,  --quiet                                    No more screen output. (default=false)\n  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)\n  -V,  --version                                  Show the version of this app. (default=false)\n\nType '-h' or '--help' to get command help screen.\n```\n\nUsages:\n\n```bash\n# print section `server`, entry `port`\n$ ini-op e get server port $HOME/abc.ini\n$ ini-op e put server port 1313 $HOME/abc.ini\n$ ini-op e rm server port $HOME/abc.ini\n```\n\n## **TODO**\n\n- [x] rewrite with new `cmdr`;\n- [ ] add `yaml`, `json`, and `toml` supports;\n- [ ] clean codes\n\n## Contrib\n\nFeel free to issue.\n\n## LICENSE\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedzr%2Fini-op","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhedzr%2Fini-op","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedzr%2Fini-op/lists"}