sourcegraph/src-cli

Name: src-cli

Owner: Sourcegraph

Description: Sourcegraph CLI

Created: 2018-04-23 23:50:32.0

Updated: 2018-05-22 22:57:39.0

Pushed: 2018-05-16 07:58:17.0

Homepage: https://sourcegraph.com

Size: 779

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Sourcegraph CLI Build Status Build status Go Report Card

The Sourcegraph CLI provides access to Sourcegraph via a command line interface.

Status of the project

Currently, the src CLI only provides access to Sourcegraph's GraphQL API. It lets you:

In the future it may provide much more:

Installation
Mac OS:
 -L https://github.com/sourcegraph/src-cli/releases/download/latest/src_darwin_amd64 -o /usr/local/bin/src
d +x /usr/local/bin/src
Linux:
 -L https://github.com/sourcegraph/src-cli/releases/download/latest/src_linux_amd64 -o /usr/local/bin/src
d +x /usr/local/bin/src
Windows:

Note: Windows support is still rough around the edges, but is available. If you encounter issues, please let us know by filing an issue :)

Usage

Consult src -h and src api -h for usage information.

Development

If you want to develop the CLI, you can install it with go get:

et -u github.com/sourcegraph/src-cli/cmd/src
Releasing
  1. Find the latest version (either via the releases tab on GitHub or via git tags) to determine which version you are releasing.
  2. VERSION=9.9.9 ./release.sh (replace 9.9.9 with the version you are releasing)
  3. Travis will automatically perform the release. Once it has finished, confirm that the curl commands fetch the latest version above.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.