iniq
Version, currently master branch1 version
- master branchlatestJan 14, 2020
github.com/tijn/iniq
A command line tool to query ini files
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
iniq:
github: tijn/iniq
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Tijn Schuurmans
- Target
iniqfrom src/iniq.cr
Dependencies
This version declares no dependencies.
README
iniq
Grab values or complete sections from INI filies on the command line with ease.
Since the output is a sanitized version of the input you may also use it as a code beautifier.
Installation
git clone git@github.com:tijn/iniq.git
cd iniq
crystal build src/iniq.cr
This will get you a binary called iniq that you can run. And you can throw it somewhere in a directory from your $PATH of course; /usr/local/bin for example.
Usage
~ ยป iniq -h
Usage: iniq [OPTION]... INI-FILE KEY
iniq [OPTION]... INI-FILE "[SECTION]" KEY
iniq [OPTION]... INI-FILE "[SECTION]"
cat INI-FILE | iniq [OPTION]... ["[SECTION]"] KEY
Query an INI file for a value using a key and maybe a section.
Grab a whole section by providing its name within square brackets. The special
section "[]" refers to the keys that have no section. Sections are printed
as INI files that can be parsed (by iniq) again. Comments will be stripped.
Examples:
$ iniq /usr/lib/firefox/application.ini "[App]" Version
56.0.1
$ iniq /usr/lib/firefox/application.ini "[Gecko]"
MinVersion=56.0.1
MaxVersion=56.0.1
$ iniq test.ini "[App]" | iniq Version
56.0.1
-e, --exit-status Exit with a non-zero status if value cannot be found
-h, --help Display this screen
-v, --verbose Verbose output
Contributing
- Fork it ( https://github.com/tijn/iniq/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- tijn Tijn Schuurmans - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jan 14, 2020
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/tijn/iniq
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1