{"id":17645605,"url":"https://github.com/sgaunet/gini","last_synced_at":"2025-04-24T05:23:37.589Z","repository":{"id":65494493,"uuid":"586068227","full_name":"sgaunet/gini","owner":"sgaunet","description":"utility to make some basic operations on ini files","archived":false,"fork":false,"pushed_at":"2025-02-17T07:37:54.000Z","size":34,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T07:15:25.506Z","etag":null,"topics":["cli","edition","files","golang","ini","manipulation"],"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/sgaunet.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-01-06T21:20:55.000Z","updated_at":"2025-02-17T07:37:51.000Z","dependencies_parsed_at":"2023-11-07T17:51:10.790Z","dependency_job_id":"2c632d31-2c77-4df0-8ac8-7b7bbd9707e4","html_url":"https://github.com/sgaunet/gini","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgaunet","download_url":"https://codeload.github.com/sgaunet/gini/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250568075,"owners_count":21451554,"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","edition","files","golang","ini","manipulation"],"created_at":"2024-10-23T10:57:54.683Z","updated_at":"2025-04-24T05:23:37.566Z","avatar_url":"https://github.com/sgaunet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/sgaunet/gini)](https://goreportcard.com/report/github.com/sgaunet/gini)\n\n# gini\n\ngini is a utility to make some basic operations on ini files.\n\n```\nTool to get/set key from an ini file.\n\nUsage:\n  gini [command]\n\nAvailable Commands:\n  del         delete a key from an ini file\n  delsection  delete all keys of a section\n  get         retrieve a key from an ini file\n  help        Help about any command\n  set         add/update key/value\n  version     print version of gini\n\nFlags:\n  -h, --help       help for gini\n      --i string   init file to read/update\n      --k string   key to read or update\n      --s string   section of ini file (can be empty)\n\nUse \"gini [command] --help\" for more information about a command.\n```\n\nThe **set** command have two more options:\n\n```\ngini set -h\nadd/update key/value in the desired section (can be empty)\n\nUsage:\n  gini set [flags]\n\nFlags:\n      --c          create file if no present\n  -h, --help       help for set\n      --v string   value to set\n\nGlobal Flags:\n      --i string   init file to read/update\n      --k string   key to read or update\n      --s string   section of ini file (can be empty)\n```\n\n# Some examples \n\n```\n$ gini get --k key --i tests/test.ini\nvalue\n$ gini get --k key2 --i tests/test.ini --s section\nvalue2\n$ gini get --k keyThatDoNotExists --i tests/test.ini\n$ echo $?\n0\n```\n\n# Install\n\n## Option 1\n\n* Download the release\n* Install the binary in /usr/local/bin \n\n## Option 2: with asdf\n\n```\nasdf plugin-add gini https://github.com/sgaunet/asdf-gini.git\nasdf install gini latest\n```\n\n## Option 3: With brew\n\n```\nbrew tap sgaunet/homebrew-tools\nbrew install sgaunet/tools/gini\n```\n\n# Development\n\nThis project is using :\n\n* golang 1.19+\n* [task for development](https://taskfile.dev/#/)\n* docker\n* [docker buildx](https://github.com/docker/buildx)\n* docker manifest\n* [goreleaser](https://goreleaser.com/)\n* [Principle package of the CLI](https://pkg.go.dev/gopkg.in/ini.v1?utm_source=godoc)\n\nThe docker image is only created to simplify the copy of gini in another docker image.\n\n# Tests\n\nTests are executed with [venom](https://github.com/ovh/venom).\n\n```\ntask tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgaunet%2Fgini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgini/lists"}