Skip to content

Rust CLI for Fetch live cricket score using match ID.

License

Notifications You must be signed in to change notification settings

mskian/cricket-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cricket CLI 🏏

Rust CLI for Fetch live cricket score using match ID.

Requirements

Installation

  • 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

LICENSE

MIT