Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code owners #15

Merged
merged 1 commit into from
Jul 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @CircleCI-Public/dx-internal
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
project_name: circleci-cli

archive:
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip


builds:
- binary: circleci
goos:
Expand Down
70 changes: 6 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This project is the seed for CircleCI's new command-line application.

## Getting Started


### 1. Get the latest binary

Download the [latest release](https://github.com/CircleCI-Public/circleci-cli/releases/latest) from GitHub for your operating system. If you're on a Mac, this would be `circleci-cli_0.1.X_darwin_amd64.tar.gz`.
Expand All @@ -13,72 +12,15 @@ Download the [latest release](https://github.com/CircleCI-Public/circleci-cli/re

```
$ tar -xvzf circleci-cli_0.1.X_darwin_amd64.tar.gz
$ mv circleci-beta /usr/local/bin
$ mv circleci /usr/local/bin
$ circleci help
```

### 3. Run a Diagnostic check

```
$ circleci-beta diagnostic

Please enter your CircleCI API token:
OK.
Your configuration has been created in `/home/zzak/.circleci/cli.yml`.
It can edited manually for advanced settings.

---
CircleCI CLI Diagnostics
---

Config found: `/home/zzak/.circleci/cli.yml`
Host is: https://circleci.com
OK, got a token.
```

## Running a query

After you've setup the CLI, you can try executing a GraphQL query against the client.

Given we've written the following query in a file called `query.gql`:

``` graphql
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
description
}
}
}

fragment FullType on __Type {
kind
name
description
fields(includeDeprecated: true) {
name
}
}
```

You can now pipe that file to the `query` command to send it.

```
$ cat query.gql | circleci-beta query
```
## Validate A Build Config

This should pretty-print back a JSON response from the server:
To ensure that the tool is installed, you can use it to validate a build config file.

```
{
"__schema": {
# ...Tons O' Schema
}
}
$ circleci config validate
Config file at .circleci/config.yml is valid
```