Skip to content

Add policy CRUD commands with generated client and TLS support (Topic 4)#6

Merged
ygalblum merged 1 commit into
dcm-project:mainfrom
ygalblum:topic-4-policy-commands
Mar 19, 2026
Merged

Add policy CRUD commands with generated client and TLS support (Topic 4)#6
ygalblum merged 1 commit into
dcm-project:mainfrom
ygalblum:topic-4-policy-commands

Conversation

@ygalblum

Copy link
Copy Markdown
Contributor

Implement policy create, list, get, update, and delete commands using the oapi-codegen generated policy-manager client with typed methods for client-side payload validation. Includes shared command helpers (HTTP client, request context, error handling, input parsing), TLS transport configuration for https endpoints, MarkFlagRequired with PreRunE for exit code 2 on missing flags, and comprehensive Ginkgo test suites.

Implement policy create, list, get, update, and delete commands using
the oapi-codegen generated policy-manager client with typed methods
for client-side payload validation. Includes shared command helpers
(HTTP client, request context, error handling, input parsing), TLS
transport configuration for https endpoints, MarkFlagRequired with
PreRunE for exit code 2 on missing flags, and comprehensive Ginkgo
test suites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
Comment thread internal/commands/helpers.go
@ygalblum ygalblum merged commit 14cae23 into dcm-project:main Mar 19, 2026
4 checks passed
@ygalblum ygalblum deleted the topic-4-policy-commands branch March 19, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants