Skip to content

Commit

Permalink
Docs and GPG consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
straubt1 committed Oct 13, 2023
1 parent 1afaf8c commit 42a064c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.1.2] - 2023.10.13

**Added**

* `tfx workspace run discard` - Discard a run on a given Workspace.

**Changed**

* Updated go to v1.21
* Updated all go packages to latest
* `tfx admin gpg create` command will now output "KeyID" instead of "ID" to match the API response.

**Removed**
* `tfx admin gpg create` and `tfx admin gpg show` commands will now output "KeyID" instead of "ID" to match the API response.

## [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 @@ -171,7 +171,7 @@ func gpgShow(c TfxClientContext, namespace string, keyId string) error {
}

o.AddMessageUserProvided("GPG Key Found", "")
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
4 changes: 2 additions & 2 deletions site/docs/commands/admin_gpg.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ tfx admin gpg create --namespace firefly --public-key ./hashicorp.51852D87348F
Using config file: /Users/tstraub/.tfx.hcl
Create GPG Key for Organization: firefly
GPG Key Created
ID: 18
KeyID: 51852D87348FFC4C
Created: Fri Aug 19 21:48 2022
Updated: Fri Aug 19 21:48 2022
AsciiArmor:
Expand Down Expand Up @@ -80,7 +80,7 @@ $ tfx admin gpg show --namespace firefly --id 51852D87348FFC4C
Using config file: /Users/tstraub/.tfx.hcl
Show a GPG Key for Organization: firefly
GPG Key Found
ID: 16
KeyID: 51852D87348FFC4C
Created: Sat Jul 9 16:26 2022
Updated: Sat Jul 9 16:26 2022
AsciiArmor:
Expand Down
12 changes: 12 additions & 0 deletions site/docs/commands/workspace_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,15 @@ Message: Triggered via API
Terraform Version: 1.0.0
Created: Tue Jun 28 17:46 2022
```

## `tfx workspace run discard`

Discard a supplied Run.

**Example**

```sh
$ tfx workspace run discard --id run-oB7uUW4Qgk9HQMCU
Using config file: /Users/tstraub/.tfx.hcl
Discarded run id: run-oB7uUW4Qgk9HQMCU
```

0 comments on commit 42a064c

Please sign in to comment.