Skip to content

prajjwalyd/crickCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrickCLI

Terminal companion for live cricket scores and stats, keeping users in the game with speed and simplicity, powered by Go.

Logo

Logo

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.

./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

About

Terminal companion for live cricket scores and stats, keeping users in the game with speed and simplicity, powered by Go.

Topics

Resources

Stars

Watchers

Forks

Languages