From e1e782f25eea4ff9599a3560b695f08648ae9608 Mon Sep 17 00:00:00 2001 From: Darrell Warde <8117355+darrellwarde@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:36:59 +0000 Subject: [PATCH] Prep for stable release (#100) * Release `aura-cli` * Better error message for no credentials * Move CLI out of prerelease --- .changes/v1.0.0-beta.1.md | 6 ------ .changes/v1.0.0.md | 7 +++++++ .changes/v1.0.0/Added-20241104-075953.yaml | 3 --- .changes/v1.0.0/Added-20241104-080849.yaml | 3 --- .changes/v1.0.0/Added-20241125-174600.yaml | 3 --- .changes/v1.0.0/Added-20241127-155407.yaml | 3 --- .goreleaser.yaml | 8 ++++---- common/clicfg/credentials/aura.go | 2 +- 8 files changed, 12 insertions(+), 23 deletions(-) delete mode 100644 .changes/v1.0.0-beta.1.md create mode 100644 .changes/v1.0.0.md delete mode 100644 .changes/v1.0.0/Added-20241104-075953.yaml delete mode 100644 .changes/v1.0.0/Added-20241104-080849.yaml delete mode 100644 .changes/v1.0.0/Added-20241125-174600.yaml delete mode 100644 .changes/v1.0.0/Added-20241127-155407.yaml diff --git a/.changes/v1.0.0-beta.1.md b/.changes/v1.0.0-beta.1.md deleted file mode 100644 index 28dd4c4..0000000 --- a/.changes/v1.0.0-beta.1.md +++ /dev/null @@ -1,6 +0,0 @@ -## v1.0.0-beta.1 - 2024-11-29 -### Added -* GraphQL Data API authentication provider create command -* GraphQL Data API authentication provider delete command -* Added input validation for string flags with finite possible values -* Require less arguments when creating Aura Free instances - allowed values are automatically populated. diff --git a/.changes/v1.0.0.md b/.changes/v1.0.0.md new file mode 100644 index 0000000..2ca2292 --- /dev/null +++ b/.changes/v1.0.0.md @@ -0,0 +1,7 @@ +## v1.0.0 - 2024-12-20 +This is the first stable release of the Aura CLI, which brings support for managing the following Aura resources: +* Instances (create/delete/get/list/overwrite/pause/resume/update) + * Snapshots (create/get/list) +* Customer Managed Keys (create/delete/get/list) +* Tenants (get/list) + diff --git a/.changes/v1.0.0/Added-20241104-075953.yaml b/.changes/v1.0.0/Added-20241104-075953.yaml deleted file mode 100644 index 3d6b708..0000000 --- a/.changes/v1.0.0/Added-20241104-075953.yaml +++ /dev/null @@ -1,3 +0,0 @@ -kind: Added -body: GraphQL Data API authentication provider create command -time: 2024-11-04T07:59:53.820945+01:00 diff --git a/.changes/v1.0.0/Added-20241104-080849.yaml b/.changes/v1.0.0/Added-20241104-080849.yaml deleted file mode 100644 index 9b0f835..0000000 --- a/.changes/v1.0.0/Added-20241104-080849.yaml +++ /dev/null @@ -1,3 +0,0 @@ -kind: Added -body: GraphQL Data API authentication provider delete command -time: 2024-11-04T08:08:49.404096+01:00 diff --git a/.changes/v1.0.0/Added-20241125-174600.yaml b/.changes/v1.0.0/Added-20241125-174600.yaml deleted file mode 100644 index d6bb7b8..0000000 --- a/.changes/v1.0.0/Added-20241125-174600.yaml +++ /dev/null @@ -1,3 +0,0 @@ -kind: Added -body: Added input validation for string flags with finite possible values -time: 2024-11-25T17:46:00.871532Z diff --git a/.changes/v1.0.0/Added-20241127-155407.yaml b/.changes/v1.0.0/Added-20241127-155407.yaml deleted file mode 100644 index c1e4cc2..0000000 --- a/.changes/v1.0.0/Added-20241127-155407.yaml +++ /dev/null @@ -1,3 +0,0 @@ -kind: Added -body: Require less arguments when creating Aura Free instances - allowed values are automatically populated. -time: 2024-11-27T15:54:07.667786Z diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2e10e97..490e163 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,7 +9,7 @@ version: 2 # TODO: Change to neo4j-cli if decided to release "mono-CLI" -project_name: aura +project_name: aura-cli before: hooks: @@ -28,8 +28,8 @@ builds: # ldflags: # - -X "main.Version={{.Env.GORELEASER_CURRENT_TAG}}" - main: ./neo4j-cli/aura/cmd - id: aura - binary: aura + id: aura-cli + binary: aura-cli env: - CGO_ENABLED=0 goos: @@ -70,7 +70,7 @@ notarize: # # Default: the project name. ids: - - neo4j-cli + - aura-cli sign: # The .p12 certificate file path or its base64'd contents. diff --git a/common/clicfg/credentials/aura.go b/common/clicfg/credentials/aura.go index fba3b85..b90b1a1 100644 --- a/common/clicfg/credentials/aura.go +++ b/common/clicfg/credentials/aura.go @@ -80,7 +80,7 @@ func (c *AuraCredentials) SetDefault(name string) error { func (c *AuraCredentials) GetDefault() (*AuraCredential, error) { if c.DefaultCredential == "" { - return nil, clierr.NewUsageError("default credential not set") + return nil, clierr.NewUsageError("default credential not set, please follow the instructions at https://neo4j.com/docs/aura/classic/platform/api/authentication/#_creating_credentials and use the `credential add` subcommand to add the created credentials") } return c.Get(c.DefaultCredential) }