Command-line TOML parser
Go to file
Emma Tebibyte 7128f8d673 added exit_no_std and better builds 2022-12-19 20:55:48 -05:00
.cargo added exit_no_std and better builds 2022-12-19 20:55:48 -05:00
src added exit_no_std and better builds 2022-12-19 20:55:48 -05:00
Cargo.lock added exit_no_std and better builds 2022-12-19 20:55:48 -05:00
Cargo.toml added exit_no_std and better builds 2022-12-19 20:55:48 -05:00
LICENSE initial commit, handles normal keys and prints full arrays 2022-11-06 14:25:37 -05:00
README.md updated README to latest featureset 2022-12-19 14:01:28 -05:00
rust-toolchain.toml added exit_no_std and better builds 2022-12-19 20:55:48 -05:00

README.md

tomcat a minimal TOML parser for the command line.

Installation

From Source

  1. Run cargo --install --git https://git.tebibyte.media/emma/tomcat.git
  2. ???
  3. Profit

Also make sure that your cargo bin directory (by default in "$CARGO_HOME"/bin) is in your $PATH; I recommend symlinking the folder to "$HOME/.local/bin and adding that to your user $PATH.

Usage

Assuming the TOML file being parsed is file.toml:

To get the value of top-level key notable:

tomcat notable file.toml

To get the value of key from the main table:

tomcat main.key file.toml

To get the value of key from the subtable subtab in table main:

tomcat main.subtab.key file.toml

To get the value of index 3 in array arr in table main:

tomcat main.arr[3] file.toml