From f082a9e3cdafb0834690169286c181b995764866 Mon Sep 17 00:00:00 2001 From: Tom Straub Date: Fri, 13 Oct 2023 08:08:38 -0500 Subject: [PATCH] Fixed GPG output key (#91) * Fixed output key * Update changelog --- CHANGELOG.md | 2 ++ cmd/admin_gpg.go | 2 +- cmd/registry_provider_version_platform.go | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 704b01d..16c736e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 **Changed** +* `tfx admin gpg create` command will now output "KeyID" instead of "ID" to match the API response. + **Removed** ## [v0.1.1] - 2022.09.11 diff --git a/cmd/admin_gpg.go b/cmd/admin_gpg.go index 2129ede..4937e6a 100644 --- a/cmd/admin_gpg.go +++ b/cmd/admin_gpg.go @@ -151,7 +151,7 @@ func gpgCreate(c TfxClientContext, namespace string, publicKey string, registryN } o.AddMessageUserProvided("GPG Key Created", "") - o.AddDeferredMessageRead("ID", g.ID) + o.AddDeferredMessageRead("KeyID", g.KeyID) o.AddDeferredMessageRead("Created", FormatDateTime(g.CreatedAt)) o.AddDeferredMessageRead("Updated", FormatDateTime(g.UpdatedAt)) o.AddDeferredMessageRead("AsciiArmor", "\n"+g.AsciiArmor) diff --git a/cmd/registry_provider_version_platform.go b/cmd/registry_provider_version_platform.go index 23c78c6..75437aa 100644 --- a/cmd/registry_provider_version_platform.go +++ b/cmd/registry_provider_version_platform.go @@ -145,7 +145,6 @@ func init() { // `tfx registry provider version platform show` arguments registryProviderVersionPlatformShowCmd.Flags().StringP("name", "n", "", "Name of the Provider") - // registryProviderVersionPlatformShowCmd.Flags().StringP("name", "n", "", "Name of the Provider") registryProviderVersionPlatformShowCmd.Flags().StringP("version", "v", "", "Version of Provider (i.e. 0.0.1)") registryProviderVersionPlatformShowCmd.Flags().StringP("os", "", "", "OS of the Provider Version Platform (linux, windows, darwin)") registryProviderVersionPlatformShowCmd.Flags().StringP("arch", "", "", "ARCH of the Provider Version Platform (amd64, arm64)")