Metadata-Version: 2.4
Name: toml-cli
Version: 0.3.1
Summary: Command line interface to read and write keys/values to/from toml files
Home-page: https://github.com/mrijken/toml-cli
Author: Marc Rijken
Requires-Python: >=3.6
License-File: LICENSE
Requires-Dist: regex>=2020.7.14
Requires-Dist: tomlkit>=0.7.2
Requires-Dist: typer>=0.3.2
Dynamic: author
Dynamic: description
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# tom-cli

![Build](https://github.com/mrijken/toml-cli/workflows/CI/badge.svg)
![Hits](https://hitcounter.pythonanywhere.com/count/tag.svg?url=https%3A%2F%2Fgithub.com%2Fmrijken%toml-cli)

Command line interface for toml files.

This can be usefull for getting or setting parts of a toml file without an editor.
Which can be convinient when values have to be read by a script for example in
continuous development steps.


## Install

`pip install toml-cli`

## Get a value

`toml get --toml-path pyproject.toml tool.poetry.name`

## Set a value

`toml set --toml-path pyproject.toml tool.poetry.version 0.2.0`

## Add a section

`toml add_section --toml-path pyproject.toml tool.poetry.new_section`

## Unset a value

`toml unset --toml-path pyproject.toml tool.poetry.version`
