Skip to content

Commit

Permalink
Rename check to diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed May 30, 2018
1 parent 40a0c5c commit 0cf26ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ TODO: we want `make` to check vendor? They are committed...
$ make
```

### 3. Run Check
### 3. Run Diagnostic check

```
$ cli check
$ ./build/target/linux/amd64/cli diagnostic
# some output
```

Expand Down
10 changes: 5 additions & 5 deletions cmd/check.go → cmd/diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"github.com/spf13/cobra"
)

var checkCmd = &cobra.Command{
Use: "check",
Short: "Check status of CircleCI",
Run: check,
var diagnosticCmd = &cobra.Command{
Use: "diagnostic",
Short: "Check the status of your CircleCI CLI.",
Run: diagnostic,
}

func check(cmd *cobra.Command, args []string) {
func diagnostic(cmd *cobra.Command, args []string) {
client := graphql.NewClient("https://circleci.com/graphql")

req := graphql.NewRequest(`
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var RootCmd = &cobra.Command{
}

func AddCommands() {
RootCmd.AddCommand(checkCmd)
RootCmd.AddCommand(diagnosticCmd)
}

// TODO: This convention was carried over from admin-cli, do we still need it?
Expand Down

0 comments on commit 0cf26ca

Please sign in to comment.