https://github.com/prajjwalyd/crickcli
Terminal companion for live cricket scores and stats, keeping users in the game with speed and simplicity, powered by Go.
https://github.com/prajjwalyd/crickcli
cobra-cli cricket cricket-data go gocli golang
Last synced: 8 months ago
JSON representation
Terminal companion for live cricket scores and stats, keeping users in the game with speed and simplicity, powered by Go.
- Host: GitHub
- URL: https://github.com/prajjwalyd/crickcli
- Owner: prajjwalyd
- Created: 2024-02-03T12:26:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T19:28:18.000Z (over 2 years ago)
- Last Synced: 2025-01-20T21:37:37.202Z (over 1 year ago)
- Topics: cobra-cli, cricket, cricket-data, go, gocli, golang
- Language: Go
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CrickCLI
Terminal companion for live cricket scores and stats, keeping users in the game with speed and simplicity, powered by Go.


### Directory Structure:
```
cricCLI/
|-- cmd/
| |-- root.go // Main command logic
| |-- edit.go // Edit command logic
|-- internal/
| |-- config/
| |-- config.go // Configuration handling
| |-- cricklib/
| |-- cricklib.go // Live cricket score logic
|-- pkg/
| |-- http/
| |-- client.go // HTTP client abstraction
|-- tests/
| |-- cricklib/
| |-- cricklib_test.go // Unit tests for cricklib package
|-- go.mod
|-- go.sum
|-- main.go
|-- README.md
```
### Build
```
go build -o crickCLI
```
### Run
If using for the first time, you need to set a match ID first, which can be found [here](https://github.com/prajjwalyd/crickCLI/blob/main/docs/matchID.md).
```
./crickCLI edit
```
After setting the match ID once, you can edit it anytime using the same commands.
To see the live score:
```
./crickCLI
```
This command will fetch and display the live score of the set match ID.
### Run Without Build
```
go run main.go edit
```