circle-cli
Advanced tools
Comparing version 1.0.9 to 1.1.0
@@ -17,3 +17,3 @@ #!/usr/bin/env node | ||
var failure = color.red.bold; | ||
var none = color.black.bold; | ||
var none = color.white.bold; | ||
@@ -30,3 +30,3 @@ function getColorFunc(status) { | ||
'running': running | ||
}[status] | ||
}[status] || none | ||
} | ||
@@ -33,0 +33,0 @@ |
{ | ||
"name": "circle-cli", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "circle-ci cli", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# circle-cli [![npm version](https://img.shields.io/npm/v/circle-cli.svg)](https://www.npmjs.org/package/circle-cli) | ||
A CircleCI CLI via node | ||
## Install | ||
@@ -8,17 +10,30 @@ ```shell | ||
## Usage | ||
## Configuration | ||
```shell | ||
export CIRCLE_TOKEN='xxx' | ||
export CIRCLE_TOKEN='your circleci token' | ||
export CIRCLE_VCS_TYPE='github' | ||
export CIRCLE_USERNAME='maskzh' | ||
``` | ||
add to `.bashrc` or `.zshrc` | ||
add these to `.bashrc` or `.zshrc` | ||
then | ||
## Usage | ||
``` | ||
circle-cli ls # 最近 build 记录 | ||
circle-cli projects # 列出项目 | ||
circle-cli projects -v # 列出项目及分支 | ||
circle-cli show # 最近一条 build 记录的构建详情 | ||
circle-cli artifacts # 最近一条 build 记录的 artifacts | ||
circle-cli cancel # 取消最近一条 build | ||
circle-cli retry # rebuild 最近一条 build | ||
circle-cli project -p reponame # reponame 的 build 记录 | ||
circle-cli project -p reponame -n 199 # reponame 序号为 199 的 build 详情 | ||
circle-cli project -p reponame -n 199 -a # reponame 序号为 199 的 artifacts | ||
circle-cli project -p reponame -n 199 -c # 取消 reponame 序号为 199 的 build | ||
circle-cli project -p reponame -n 199 -r # rebuild reponame 序号为 199 的 build | ||
``` | ||
circle-cli ls | ||
``` | ||
## Preview | ||
![](./screenshot.png) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39
106822