balbalancli

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Logo

BalbalanCLI

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Go Package

About The Project

BalbalanCLI is a simple CLI application that can show the latest football score and league standing.

Getting Started

Ensure that Go is installed in your computer.

Setup the API Key

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.

Installation

Run

go get -u github.com/yogamuris/balbalancli

Usage

Available league

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

Available Command

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
config command

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
help command

Get help for specific command

   balbalancli help <command>
list command

Get list of available league

balbalancli list [flags]

Flags:
  -h, --help   help for list
score command

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.
standing command

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.

License

Distributed under the Apache. See LICENSE for more information.

Go Package

Documentation

Overview

Copyright © 2021 Adhi Yoga <yogamuris@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL