Skip to content

Commit aa8cf16

Browse files
thrashr888claude
andcommitted
Release v0.5.0
- Convert shell scripts to Go tests for CI automation - TestAllCommandsRegistered (api-coverage.sh replacement) - TestAllCommandsHaveHelpAndSynopsis - TestAllCommandFilesHaveTests (test-priority.sh replacement) - TestCommandNamesMatchFiles - Workspace project reassignment, lock lifecycle, run force-execute - Full workspace create/update API coverage - Run org-level listing, policy upload/download - Variable set and policy set management commands - Expanded filter flags for list/read commands - Delete scripts/ directory (replaced by Go tests) - Bump version to 0.5.0 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent fec0274 commit aa8cf16

File tree

6 files changed

+551
-666
lines changed

6 files changed

+551
-666
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.5.0] - 2026-02-22
11+
1012
### Added
1113

1214
- **Workspace project reassignment**: `hcptf workspace update -project-id=<id>` to move workspaces between projects
@@ -20,6 +22,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2022
- **Variable set management**: `variableset remove`, `variableset list-workspace`, `variableset list-project`, `variableset update-workspaces`, `variableset update-stacks` commands with `-query` and `-include` flags on list/read
2123
- **Policy set workspace/project management**: `policyset add-workspace`, `policyset remove-workspace`, `policyset add-workspace-exclusion`, `policyset remove-workspace-exclusion`, `policyset add-project`, `policyset remove-project` commands
2224
- **Expanded policy/policyset flags**: Added `-kind`, `-query`, `-include`, `-overridable`, `-agent-enabled`, `-policy-tool-version`, `-policies-path` flags to policy and policyset commands
25+
- **API coverage Go tests**: Converted `scripts/api-coverage.sh` and `scripts/test-priority.sh` to Go tests in `command/commands_test.go` — now run automatically in CI via `go test ./...`
26+
- `TestAllCommandsRegistered` — verifies every expected API operation has a registered CLI command
27+
- `TestAllCommandsHaveHelpAndSynopsis` — asserts all commands have non-empty Help() and Synopsis()
28+
- `TestAllCommandFilesHaveTests` — reports which command files lack test coverage
29+
- `TestCommandNamesMatchFiles` — validates command-to-file naming conventions
30+
31+
### Removed
32+
33+
- Deleted `scripts/api-coverage.sh`, `scripts/test-priority.sh`, and `scripts/coverage.sh` — replaced by Go tests or no longer needed
2334

2435
## [0.4.0] - 2026-02-16
2536

@@ -271,7 +282,8 @@ Initial release of the HCP Terraform CLI with comprehensive API coverage.
271282

272283
Total: 229 commands across 59 resource types.
273284

274-
[Unreleased]: https://github.com/thrashr888/hcptf-cli/compare/v0.4.0...HEAD
285+
[Unreleased]: https://github.com/thrashr888/hcptf-cli/compare/v0.5.0...HEAD
286+
[0.5.0]: https://github.com/thrashr888/hcptf-cli/compare/v0.4.0...v0.5.0
275287
[0.4.0]: https://github.com/thrashr888/hcptf-cli/compare/v0.3.1...v0.4.0
276288
[0.3.1]: https://github.com/thrashr888/hcptf-cli/compare/v0.3.0...v0.3.1
277289
[0.3.0]: https://github.com/thrashr888/hcptf-cli/compare/v0.2.0...v0.3.0

0 commit comments

Comments
 (0)