{"id":28386181,"url":"https://github.com/bitnami/ini-file","last_synced_at":"2025-06-26T13:32:13.336Z","repository":{"id":39996925,"uuid":"150459371","full_name":"bitnami/ini-file","owner":"bitnami","description":"CLI tool for modifying .ini files","archived":false,"fork":false,"pushed_at":"2025-05-12T07:30:11.000Z","size":130,"stargazers_count":29,"open_issues_count":0,"forks_count":7,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-30T16:37:57.035Z","etag":null,"topics":["ini"],"latest_commit_sha":null,"homepage":"https://bitnami.com","language":"Go","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/bitnami.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-26T16:48:23.000Z","updated_at":"2025-05-12T07:30:13.000Z","dependencies_parsed_at":"2023-11-29T16:47:33.685Z","dependency_job_id":"b966f0c3-f8da-4e36-9b34-2cef92cbea0d","html_url":"https://github.com/bitnami/ini-file","commit_stats":{"total_commits":47,"total_committers":9,"mean_commits":5.222222222222222,"dds":0.7446808510638299,"last_synced_commit":"7ca2fb00b59daa0dc1eb346b47a267e068539911"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/bitnami/ini-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnami%2Fini-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnami%2Fini-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnami%2Fini-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnami%2Fini-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitnami","download_url":"https://codeload.github.com/bitnami/ini-file/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnami%2Fini-file/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262076758,"owners_count":23255064,"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":["ini"],"created_at":"2025-05-30T13:11:25.446Z","updated_at":"2025-06-26T13:32:13.327Z","avatar_url":"https://github.com/bitnami.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/bitnami/ini-file)](https://goreportcard.com/report/github.com/bitnami/ini-file)\n[![CI](https://github.com/bitnami/ini-file/actions/workflows/main.yml/badge.svg)](https://github.com/bitnami/ini-file/actions/workflows/main.yml)\n\n# ini-file\n\nThis tool allows manipulating INI files.\n\n# Basic usage\n\n```console\n$ ini-file --help\n\nUsage:\n  ini-file [OPTIONS] \u003cdel | get | set\u003e\n\nHelp Options:\n  -h, --help  Show this help message\n\nAvailable commands:\n  del  INI FILE Delete\n  get  INI FILE Get\n  set  INI File Set\n```\n\n# Examples\n\n## Set values in INI file\n\n```console\n$ ini-file set --section \"My book\" --key \"title\" --value \"A wonderful book\" ./my.ini\n$ ini-file set -s \"My book\" -k \"author\" -v \"Bitnami\" ./my.ini\n$ ini-file set -s \"My book\" -k \"rate\" -v \"very good\" ./my.ini\n$ cat ./my.ini\n[My book]\ntitle=A wonderful book\nauthor=Bitnami\nrate=very good\n```\n\n## Set boolean value in INI file\n\n```console\n$ ini-file set -s \"My book\" -k \"already_read\" --boolean ./my.ini\n$ cat ./my.ini\n[My book]\n...\nalready_read\n```\n\n## Get values from INI file\n\n```console\n$ cat \u003e ./my.ini \u003c\u003c\"EOF\"\n[My book]\ntitle=A wonderful book\nauthor=Bitnami\nrate=very good\nalready_read\nEOF\n$ ini-file get --section \"My book\" --key title ./my.ini\nA wonderful book\n$ ini-file get --section \"My book\" --key missing_key ./my.ini\n\n$ ini-file get --section \"My book\" --key author ./my.ini\nBitnami\n$ ini-file get --section \"My book\" --key already_read ./my.ini\ntrue\n```\n\n## Deletes values from INI file\n\n```console\n$ cat \u003e ./my.ini \u003c\u003c\"EOF\"\n[My book]\ntitle=A wonderful book\nauthor=Bitnami\nrate=very good\nalready_read\nEOF\n$ ini-file del --section \"My book\" --key title ./my.ini\n$ ini-file del --section \"My book\" --key missing_key ./my.ini\n$ ini-file del --section \"My book\" --key author ./my.ini\n$ cat ./my.ini\n[My book]\nrate=very good\nalready_read\n```\n\n## Working with identical keys in the file\n\n```console\n$ cat \u003e ./my.ini \u003c\u003c\"EOF\"\n[My book]\ntitle=A wonderful book\nauthor[]=Bitnami\nauthor[]=Contributors\nEOF\n\n# get retrieves the first mention of the key\n$ ini-file get --section \"My book\" --key \"author[]\" ./my.ini\nBitnami\n\n# If the original file contains the key more than once, set adds the new value at the end\n$ ini-file set --section \"My book\" --key \"author[]\" --value \"Other\" ./my.ini\n$ cat ./my.ini\ntitle=A wonderful book\nauthor[]=Bitnami\nauthor[]=Contributors\nauthor[]=Other\n\n# del removes all keys with the given name\n$ ini-file del --section \"My book\" --key \"author[]\" ./my.ini\n$ cat ./my.ini\ntitle=A wonderful book\n```\n\n## License\n\nCopyright \u0026copy; 2025 Broadcom. The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.\n\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnami%2Fini-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitnami%2Fini-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnami%2Fini-file/lists"}