Rust CLI for Fetch live cricket score using match ID.
- Rust: https://www.rust-lang.org/
- Cricket API: https://github.com/sanwebinfo/ts-cricket-score
- Download or clone the repo
git clone https://github.com/mskian/cricket-cli.git
cd cricket-cli
- Create a
.env
file in the root of your project with the following content
CRICKET_API_URL=https://cricket.example.com/score
- it support global environment variables too
CRICKET_API_URL=https://cricket.example.com/score
- Unset the Global Variable
unset CRICKET_API_URL
- Test the CLI
cargo run
cargo run -- -h
cargo run -- -m 91814
cargo run -- -v -m 91814
- Production build
cargo build --release
- Cricket CLI
sudo mv target/release/cricket /usr/local/bin/cricket
cricket --help
MIT