tamasha

Crates.iotamasha
lib.rstamasha
version0.1.0
sourcesrc
created_at2021-01-26 07:40:37.962385
updated_at2021-01-26 07:40:37.962385
descriptionA cli to fetch jokes from JokeAPI.
homepagehttps://rahul.onl
repositoryhttps://github.com/rahulunair/tamasha
max_upload_size
id346780
size36,126
Rahul Nair (rahulunair)

documentation

README

Tamasha

A cli client to fetch jokes using JokeAPI in Rust.

Clone and Install

git clone https://github.com/rahulunair/tamasha.git
cd tamasha && cargo build --release

The binary will be in ./target/release/

How to use

The simplest way to use tamasha is:

tamasha --fetch

This will fetch a joke from one of the categories:

- Misc
- Programming
- Dark
- Pun 
- Spooky
- Christmas

For example,

tamasha --fetch

Why did the Python programmer not respond to the foreign mails he got?

Because his interpreter was busy collecting garbage.

To fetch a joke from a specific category, use -c or --category flag with --fetch

For example,

tamasha -c programming --fetch

Knock knock.
Who's there?
Recursion.
Recursion who?
Knock knock.

Cli options

tamasha --help

tamasha 0.1.0
Fetch me a joke!

USAGE:
    tamasha [FLAGS] [OPTIONS]

FLAGS:
        --fetch
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --category <category>    [default: any]
    -f, --format <format>        [default: txt]
Commit count: 9

cargo fmt