https://github.com/monich/conf-tool
Config file manupulation tool
https://github.com/monich/conf-tool
Last synced: 9 days ago
JSON representation
Config file manupulation tool
- Host: GitHub
- URL: https://github.com/monich/conf-tool
- Owner: monich
- License: other
- Created: 2020-09-22T23:01:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T02:07:17.000Z (over 2 years ago)
- Last Synced: 2024-02-01T03:29:08.279Z (over 2 years ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
conf-tool
=========
Utility for manipulating INI-style config files from the command line.
May be useful for scripting.
```console
Usage:
conf-tool [OPTION...] FILE [KEY [VALUE]]
Tool for parsing config files.
Help Options:
-h, --help Show help options
Application Options:
-s, --section Config section
-r, --remove Remove the specified key or section
-q, --quiet Don't print errors
```
If no key is specified, lists the keys. If neither key or section
is specified, lists sections in the config file. If the key is
specified but the section is not, the first section is used, which
may be convenient if there's only one section in the config file.
Special file name `-` means standard input.
If standard input is modified, the modified version of the input
config is dumped to standard output. That can be used for piping.
Although it wouldn't be real piping because the whole thing is
first sucked in, then modified and only then sent to standard
output. Config files are usually quite small, though, so it
shouldn't really matter.