CircleCI-Archived / orb-starter-kit

A starter kit for new orb authors
https://circleci.com/orbs
MIT License
27 stars 23 forks source link

Bug fix: Make CircleCI CLI update/install optional #16

Closed KyleTryon closed 5 years ago

KyleTryon commented 5 years ago

The current CLI update method automatically installs the CircleCI CLI via the default method but does not account for Brew or Snap installs.

Check if the CLI is installed first with which, if so, grab the cli.yml file from the path given by the command circleci diagnostic

KyleTryon commented 5 years ago

Default install example:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/x/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, xx.

Snap installation example:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/x/snap/circleci/148/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API... 
Ok.
Hello, xx.