项目作者: Nshul

项目描述 :
Command Line Interface for Cricket Lovers :cricket:
高级语言: JavaScript
项目地址: git://github.com/Nshul/cricket-cli.git
创建时间: 2018-06-26T07:18:20Z
项目社区:https://github.com/Nshul/cricket-cli

开源协议:MIT License

下载


calendar

Installation

  1. git clone https://github.com/Nshul/cricket-cli.git
  2. cd cricket-cli
  3. npm install
  4. npm link

Using link cricket would linked with this project and you can directly access it through cli

In case you would like to return back to normal, use

  1. npm unlink

in the directory

Get API

Kindly register on cricapi to get your API Key. Free API has limited Daily Requests.

In Order to set this api key for cricket

  1. cricket configure --api <yourApiKey>

Usage

  1. cricket <command> [args]
  2. Commands:
  3. cricket calendar Get Calendar for upcoming matches
  4. cricket configure Set API for cricAPI
  5. Options:
  6. --version Show version number [boolean]
  7. -h, --help Show help [boolean]

Command calendar

  1. Usage: cricket calendar [options]
  2. Options:
  3. --version Show version number [boolean]
  4. -h, --help Show help [boolean]
  5. -d, --days Number of days from today [number]
  6. Examples:
  7. cricket calendar -d 15

calendar

Command configure

  1. Usage: cricket configure [options]
  2. Options:
  3. --version Show version number [boolean]
  4. -h, --help Show help [boolean]
  5. --api, --apikey API key as provided by cricApi [string]
  6. Examples:
  7. cricket configure -api xxxxxxxxxxxxxx