Skip to content

kaifali/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-line tool for kaifa.at

Code Climate

Install

OS X

$ brew install kaifali/formulae/kaifa

Other platforms

Download binaries at https://github.com/kaifali/cli/releases

Usage

usage: kaifa [<flags>] <keyword>

Flags:
  --help           Show context-sensitive help (also try --help-long and --help-man).
  --format="html"  Format: html,json
  --version        Show application version.

Args:
  <keyword>  Keyword of service

Example:

Open browser:

$ kaifa qiniu

Fetch JSON:

$ kaifa qiniu --format=json
#=> {"keyword":"qiniu","name":"七牛","url":"http://developer.qiniu.com"}

Development

  • Install gpm
  • $ gpm install
  • $ go build kaifa.go

Distribute

  • Install gox
  • $ scripts/dist.sh