Skip to content

Develop - #9

Merged
khisakuni merged 73 commits into
mainfrom
develop
Feb 19, 2026
Merged

Develop#9
khisakuni merged 73 commits into
mainfrom
develop

Conversation

@anekkanti

@anekkanti anekkanti commented Feb 4, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Moderate risk due to new authentication flow and cloud resource mutation commands (create/update/delete) plus new CI/release pipelines, though changes are largely additive.

Overview
Introduces a new Go-based temporal-cloud CLI plugin with generated Cobra commands and supporting client/auth infrastructure.

Adds OAuth login/logout (with local token storage + refresh) and a namespace management surface (get/list/apply/edit/delete, plus targeted retention and lifecycle subcommands) with interactive diffs/prompts, idempotent/async operation handling, and integration tests.

Sets up repo tooling and automation: Makefile-driven command generation (commands.yml -> commands.gen.go), GitHub Actions for test/build/release (GoReleaser), and updates ignore/docs/owners (.gitignore, README, CODEOWNERS, AGENTS.MD, mise.toml).

Written by Cursor Bugbot for commit 7471aa2. This will update automatically on new commits. Configure here.

Gregory Mankes and others added 30 commits November 18, 2025 17:15
Also add a note in AGENTS.md for this
also remove shorthand flags except for -n
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
move retention to subcommand and add get method
Comment thread .github/workflows/build.yml
@gregmankes

Copy link
Copy Markdown

cursor review

Comment thread temporalcloudcli/commands.namespace.go Outdated
Comment thread temporalcloudcli/common.go
Comment thread temporalcloudcli/commands.namespace.go Outdated
Comment thread temporalcloudcli/cloud.go Outdated
Comment thread temporalcloudcli/commands_test.go Outdated
Comment thread temporalcloudcli/commands.go Outdated
Comment thread temporalcloudcli/commands.login.go
Comment thread .github/workflows/build.yml
Copilot AI and others added 3 commits February 6, 2026 16:58
Co-authored-by: gregmankes <8827475+gregmankes@users.noreply.github.com>
…h-again

Add Go bin to PATH in verify-generation workflow
Comment thread temporalcloudcli/common.go Outdated
Gregory Mankes and others added 2 commits February 9, 2026 15:59
This was referenced Feb 13, 2026
* fix e2e test

* fix .env loading

* Fix error handling

* refactor async polling
* Use verbose diff flag

* Clean up temp file

* Use correct namespace field

* Set common options

* Check correct field

* Remove unused funcs

* Guard against panic

* setup go

* Remove unused option set

* Fix create namespace with apply

* Remove redundancy

* Add gha content block

* Fix create vs update behavior
Comment thread temporalcloudcli/commands.go Outdated
Comment thread temporalcloudcli/namespace.go
Comment thread temporalcloudcli/namespace.go
Comment thread temporalcloudcli/namespace.go
Comment thread temporalcloudcli/oauth.go Outdated
Comment thread temporalcloudcli/commands.login.go Outdated
Comment thread temporalcloudcli/commands.namespace.go
Comment thread temporalcloudcli/common.go
@khisakuni khisakuni mentioned this pull request Feb 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

}
if !cctx.JSONOutput {
cctx.Printer.Print(progressString)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminal state progress messages are dead code

Low Severity

In PollAsyncOperation, progressString is assigned for all operation states, but for terminal states (FULFILLED, FAILED, CANCELLED, REJECTED), the function returns before reaching the cctx.Printer.Print(progressString) call on line 217. This means the completion/failure progress messages (e.g., "Operation completed successfully") are computed but never printed in non-JSON mode. Only PENDING and IN_PROGRESS messages are ever displayed. The progress string assignment for terminal states is dead code.

Fix in Cursor Fix in Web

return
}
cctx.Options.Fail(fmt.Errorf("unknown command"))
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Execute can call Fail twice in tests

Medium Severity

When cobra returns an error before PersistentPreRunE runs (e.g., unknown flags), ActuallyRanCommand remains false. Fail is called on line 340 for the cobra error, and then again on line 359 for "unknown command." In production, the first Fail calls os.Exit(1), masking this. In tests, where Fail just captures the error and returns, the second call triggers a panic ("fail called twice").

Fix in Cursor Fix in Web

@khisakuni
khisakuni merged commit 0d69157 into main Feb 19, 2026
7 checks passed
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.

5 participants