An open API service indexing awesome lists of open source software.

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.

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.

Logo

![Logo](assets/img1.png)

### 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
```