2022-12-19 05:46:16 +00:00
|
|
|
|
`tomcat` – a minimal [TOML](https://toml.io) parser for the command line.
|
2022-11-22 04:10:24 +00:00
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
### From Source
|
|
|
|
|
|
2022-12-19 05:46:16 +00:00
|
|
|
|
1. Run `cargo --install --git https://git.tebibyte.media/emma/tomcat.git`
|
|
|
|
|
2. ???
|
|
|
|
|
3. Profit
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
To get the value of `key` from the `main` table in `file.toml`:
|
|
|
|
|
|
|
|
|
|
`tomcat main.key file.toml`
|
|
|
|
|
|
|
|
|
|
To get the top-level key `notable` from `file.toml`:
|
|
|
|
|
|
|
|
|
|
`tomcat notable file.toml`
|
|
|
|
|
|
|
|
|
|
To get index `3` in array `arr` inside the `main` table in `file.toml`:
|
|
|
|
|
|
|
|
|
|
`tomcat main.arr[3] file.toml`
|