bcgov / gwa-cli

Apache License 2.0
6 stars 1 forks source link

Namespace to Gateway - `gwa namespace` to `gwa gateway` #103

Closed rustyjux closed 5 months ago

rustyjux commented 7 months ago

As an API provider, I need consistent naming on the Portal, docs, and CLI, so I don't get confused 😵

Throughout the CLI, replace "namespace" with "gateway". In particular, the gwa namespace set of commands.

Definition of done:

ikethecoder commented 5 months ago

Think we need to include in DoD an "upgrade" to the v3 api automatically so that the user does not have to pass --api-version=v3 to the command or modify any internal files to get things to work.

rustyjux commented 5 months ago

We don't need to do any of that.

For testing: set your .env file to

GWA_API_HOST=api-gov-bc-ca.dev.api.gov.bc.ca
GWA_CLIENT_ID=gwa-cli
GWA_VERSION=v3
CLI_VERSION=3.0.0-dev

(GWA_API_HOST will get over-ridden from .gwa-config.yaml, but this is the default used the first time if there is no .gwa-config.yaml) and then instead of gwa use just run, e.g. just run gateway create

When building, just release uses env vars from .env locally or from the GHA. @Elson9 FYI