Crates.io | motivator |
lib.rs | motivator |
version | 0.7.1 |
source | src |
created_at | 2022-10-23 15:44:50.0338 |
updated_at | 2022-11-20 15:38:17.568838 |
description | Indulge in some motivation++ via random quote(s). |
homepage | https://github.com/developerish/motivator |
repository | https://github.com/developerish/motivator |
max_upload_size | |
id | 695222 |
size | 75,118 |
Indulge in some motivation++ via random quote(s) from a JSON file.
❯ cargo install motivator
❯ cargo build --release
❯ ./target/release/motivator -f <JSON filename>
❯ motivator -f
--------
<Quotes file not provided. Showing a random quote from buil-in file.>
run 'motivator -h' for more options.
--------
A smooth sea never made a skillful mariner
❯ motivator -f quotes.json
Whether you think you can or think you can't, you're right. - Henry Ford
❯ motivator -f quotes.json -t stoic
Wants make you a servant - Seneca
For a full list of command-line options:
❯ motivator -h
Indulge in some motivation++ via random quote(s).
Usage: motivator [OPTIONS]
Options:
-f, --file <FILE> File path for the JSON quotes file
-t, --tag <TAG> Pick a random quote from the Tag you'd like to see
-a, --all Show all quotes
-h, --help Print help information
-V, --version Print version information
{
"quotes": [
{
"quote": "Motivational words",
"author": "",
"tags": ["Stoic", "Positivity"]
}
]
}
https://github.com/developerish/motivator/blob/main/quotes.json