Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

screwdriver-cd/client

Repository files navigation

Screwdriver Client

Build Status Open Issues Go Report Card

The command line client for Screwdriver.

Deprecated

Please note that this code is no longer used by the screwdriver.cd team and has not been maintained in a while. You are welcome to use and/or contribute to it at your own risk.

Usage

$ client --help
$ client pipelines list  
$ client builds list
$ client jobs list

Installation

Building From Source

  1. Ensure all dependencies (listed below) are met
  2. Get the code from github and add it to your GOPATH under src/github.com/screwdriver-cd/client
  3. Run bash $ swagger generate client <path to swagger spec>
  4. Run ```bash $ go get`` in the root directory of the Screwdriver Client
  5. Run bash $ go install in the root directory of the Screwdriver Client
  6. Run bash $ sd --help to get started!

Testing

$ go get github.com/screwdriver-cd/client
$ go test -cover github.com/screwdriver-cd/client/...

Dependencies

  1. Go-Swagger Binary - This is used in order to do the code generation following the Swagger (OpenAPI) Specification
  2. Go-Swagger Tag 0.50.0 Dependency - This is a code dependency for the package go-swagger, in order to build from source, this is required.

Caveats

  • The code generation is picky about the packages it tries to pull down. Ensure that the code generated all uses the dependencies from go-swagger

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.