Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahulunair/tamasha
A cli client to fetch Jokes
https://github.com/rahulunair/tamasha
cli jokes-api rust
Last synced: about 2 months ago
JSON representation
A cli client to fetch Jokes
- Host: GitHub
- URL: https://github.com/rahulunair/tamasha
- Owner: rahulunair
- License: bsd-3-clause
- Created: 2021-01-26T06:06:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T16:21:23.000Z (almost 4 years ago)
- Last Synced: 2024-09-15T12:47:04.776Z (4 months ago)
- Topics: cli, jokes-api, rust
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
## Tamasha
A cli client to fetch jokes using JokeAPI in Rust.
### Install
```bash
cargo install tamasha
```The binary will be in `./target/release/`
### How to use
The simplest way to use `tamasha` is:
```bash
tamasha --fetch
```
This will fetch a joke from one of the categories:```bash
- Misc
- Programming
- Dark
- Pun
- Spooky
- Christmas
```
For example,```bash
tamasha --fetchWhy 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,
```bash
tamasha -c programming --fetchKnock knock.
Who's there?
Recursion.
Recursion who?
Knock knock.
```### Cli options
```bash
tamasha --helptamasha 0.1.0
Fetch me a joke!USAGE:
tamasha [FLAGS] [OPTIONS]FLAGS:
--fetch
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-c, --category [default: any]
-f, --format [default: txt]