For a menu of CLI commands run:
cargo run -- --help
The CLI help menu should look something like this:
gust: makes grocery lists, written in rust
Usage: gust [OPTIONS] <COMMAND>
Commands:
add add stuff
delete delete stuff
read read stuff
update update stuff
import import from 'items.json' and 'list.json' files
export export items to 'items.yaml' and list to 'list.yaml' files
help Print this message or the help of the given subcommand(s)
Options:
--database <store> which database to use [default: sqlite] [possible values: sqlite, sqlite-inmem]
-h, --help Print help
gust
supports fetching recipes from BBC Food
by providing a URL. For example, you can fetch the recipe for scrambled egg
and toast like this:
cargo run -- fetch --url https://www.bbc.co.uk/food/recipes/scrambledeggandtoast_75736
The output should look like this:
Scrambled egg and toast with smoked salmon:
1 tbsp butter, plus extra for spreading:
2 large free-range eggs:
1 tbsp milk:
1 slice wholemeal bread, toasted:
2 slices smoked salmon:
salt and freshly ground black pepper:
See the Gust Docker documentation for instructions on how to import and export your grocery items and shopping list data.
Below is an example of typical gust
data in JSON format that you could import to your
gust
library to start cooking - this example contains grocery items for a
"crispy sheet-pan noodles" recipe we love!:
{
"collection": [
{
"name": "garlic",
"section": "fresh",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "tofu",
"section": "protein",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "vegetable oil",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "salt",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "instant ramen noodles",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "sesame oil",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "soy sauce",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "baby bok choy",
"section": "fresh",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "cilantro",
"section": "fresh",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "hoisin",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "maple syrup",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
},
{
"name": "sesame seeds",
"section": "pantry",
"recipes": [
"crispy sheet-pan noodles"
]
}
]
}