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
.envfile 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 --helpMIT