GithubHelp home page GithubHelp logo

cci's Introduction

CircleCI Client

A client for the CircleCI API.

Also an example of building a CLI application in Clojure and compiling it to a native executable using GraalVM.

Installation

Download a recent release and put it on your PATH.

Usage

  1. If you don't have one, generate a CircleCI API token here.
  2. Set a CIRCLE_TOKEN environment variable with your token.
  3. If you have only one GitHub or Bitbucket project, set CIRCLE_PROJECT_USER or CIRCLE_PROJECT_ORG so you don't have to specify a --username at the CLI.
  4. If you're using Bitbucket, set CIRCLE_VCS_TYPE so you don't have to specify your project's --vcs-type at the CLI.

Turn off colored output by passing --no-color.

For full details:

cci -h

Examples

Latest Builds

To get the last 5 builds for your project:

cci -p your-project

To focus on one branch:

cci -p your-project -b your-branch

To pull back more:

cci -p your-project -l 25

In case you didn't read the usage section and you've not defined any environment variables:

cci -t your-token    \
    -u your-username \
    -p your-project  \
    -v your-vcs-type \ # default of 'github'
    -b your-branch   \ # optional
    -l a-limit         # default of 5

License

Copyright © 2018 Daniel Gregoire

Distributed under the Mozilla Public License version 2.0.

Code copied and edited from tools.cli in the com.semperos.cci.cli namespace maintains its own copyright and license, which has been included in the source code.

cci's People

Contributors

semperos avatar

Stargazers

Michael Corrado avatar Burin Choomnuan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.