Skip to main content

Command line interface for the toolboks library

Project description

Toolboks CLI tools

toolboks-cli is a bundle of command line tools utilising the toolboks library.

Installation

Install with pip:

pip install toolboks-cli

Requirements

  • python >= 3.9
  • toolboks

Command line scripts

toolboks-cli will install the following commands:

  • tb-conf

Usage

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 = user@example.host
    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
user@example.host
$ tb-conf ~/.gitconfig diff tool
vimdiff
$ tb-conf ~/.gitconfig user name
Testy Test

License

GPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toolboks-cli-0.0.1.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

toolboks_cli-0.0.1-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page