Skip to content

jakecyr/update-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update TOML

Simple CLI to update a value in a TOML file.

Installation

Install with pip:

pip install update-toml

Usage

Update

Run 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.toml

Get

Get a value from a .toml file:

update-toml get --path project.version --file pyproject.toml
# Example return: 0.0.1

Exists

Check if a path exists in a .toml file:

update-toml exists --path project.version --file pyproject.toml
# Example return: True or False

About

A CLI to update values in a TOML file

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages