Skip to content

Commit

Permalink
Fixed GPG output key (#91)
Browse files Browse the repository at this point in the history
* Fixed output key

* Update changelog
  • Loading branch information
straubt1 committed Oct 13, 2023
1 parent a8abc1e commit f082a9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/admin_gpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion cmd/registry_provider_version_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit f082a9e

Please sign in to comment.