From f404de7a2ddf646684428eabc1911741d132fba7 Mon Sep 17 00:00:00 2001 From: emma Date: Mon, 19 Dec 2022 14:01:28 -0500 Subject: [PATCH] updated README to latest featureset --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0b5d398..37199b7 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,26 @@ 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 -To get the value of `key` from the `main` table in `file.toml`: +Assuming the TOML file being parsed is `file.toml`: -`tomcat main.key file.toml` - -To get the top-level key `notable` from `file.toml`: +To get the value of top-level key `notable`: `tomcat notable file.toml` -To get index `3` in array `arr` inside the `main` table in `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`