Simple CLI to update a value in a TOML file.
Install with pip:
pip install update-tomlRun the following command, passing in a path and value to update in the specified .toml file:
update-toml update --path project.version --value 0.0.1 --file pyproject.tomlGet a value from a .toml file:
update-toml get --path project.version --file pyproject.toml
# Example return: 0.0.1Check if a path exists in a .toml file:
update-toml exists --path project.version --file pyproject.toml
# Example return: True or False