Skip to content

Commit

Permalink
Update code owners
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomorain committed Jul 9, 2018
1 parent 2bcb180 commit 0af2364
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 64 deletions.
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
```

0 comments on commit 0af2364

Please sign in to comment.