BalbalanCLI is a simple CLI application that can show the latest football score and league standing.
Ensure that Go is installed in your computer.
To get the API Key, please register to football-data.org. After getting the API Key or Token, then add your API Key through balbalancli config --token YOUR_API_KEY
command.
Run
go get -u github.com/yogamuris/balbalancli
Code | League |
---|---|
PL | English Premier League |
PD | Primera Division La Liga |
SA | Serie A |
BL1 | Bundesliga |
FL1 | Ligue One |
DED | Eredivisie |
PPL | Primeira Liga |
CL | UEFA Champions League |
balbalancli [command]
Available Commands:
config Setting the BalbalanCLI Configuration.
help Help about any command
list Get list of available league.
score Show the latest score.
standing Show standing of the League.
Flags:
-h, --help help for balbalancli
-v, --version version for balbalancli
Setup the API Key / Token
balbalancli config [flags]
Examples:
balbalan config -t YOUR_TOKEN_VALUE
balbalan config --token YOUR_TOKEN_VALUE
Flags:
-h, --help help for config
-t, --token string set API Token
Get help for specific command
balbalancli help <command>
Get list of available league
balbalancli list [flags]
Flags:
-h, --help help for list
Get the latest football score
balbalancli score [flags]
Examples:
balbalan score -l PL
balbalan score --league PL
Flags:
-h, --help help for score
-l, --league string get the league latest score.
Get the latest league standing
balbalancli standing [flags]
Examples:
balbalan standing -l PL
balbalan standing --league PL
Flags:
-h, --help help for standing
-l, --league string get the league standing.
Distributed under the Apache. See LICENSE
for more information.