Skip to content

Rust CLI for Fetching a Random Word with Its Definition and Pronunciation.

License

Notifications You must be signed in to change notification settings

mskian/random-words-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Words CLI 📚️

Rust CLI for Fetching a Random Word with Its Definition and Pronunciation.

CLI inspired from: https://github.com/mcnaveen/random-words-cli

Requirements

Installation

  • Download or clone the repo
git clone https://github.com/mskian/random-words-cli.git
  • Create a .env file in the root of your project with the following content
RANDOMWORDS_API_URL=https://api.example.com/words
  • it support global environment variables too
export RANDOMWORDS_API_URL=https://api.example.com/words
  • Unset the Global Variable
unset RANDOMWORDS_API_URL
  • Test the CLI
cargo run
cargo run -- -h
cargo run -- -v
  • Production build
cargo build --release
  • Random Words CLI
sudo mv target/release/randomwords /usr/local/bin/randomwords
randomwords --help

LICENSE

MIT

About

Rust CLI for Fetching a Random Word with Its Definition and Pronunciation.

Topics

Resources

License

Stars

Watchers

Forks