toolboks-cli is a bundle of command line tools utilising the toolboks library.
Install with pip:
pip install toolboks-cli
- python >= 3.9
- toolboks
toolboks-cli will install the following commands:
- tb-conf
tb-conf <filename> <section> <key>
- Read configuration value from any configuration file on INI format
Example:
Having a ~/.gitconfig file with the following configuration:
[user]
email = [email protected]
name = Testy Test
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
d = difftool
Any value in the configuration file can be fetched with tb-conf:
$ tb-conf ~/.gitconfig user email
[email protected]
$ tb-conf ~/.gitconfig diff tool
vimdiff
$ tb-conf ~/.gitconfig user name
Testy Test
GPL-3.0-only