diff options
| author | James O'Doherty <james@theodohertyfamily.com> | 2026-05-29 23:27:50 -0400 |
|---|---|---|
| committer | James O'Doherty <james@theodohertyfamily.com> | 2026-05-29 23:27:50 -0400 |
| commit | 328a42144fd54ac99d1bf231e6114147e48b820f (patch) | |
| tree | 5ba1f7fcb203cd2b25dab127c7e8d874cf42b3c5 /internal/cli | |
| parent | b098e2845b68ce90f34e4e1e927b4914d0b00ef7 (diff) | |
refactor: tidy project and stabilize E2E lifecycle tests
- Improve routing logic in CLI for better readability.
- Resolve flakiness in `TestNamespaceLifecycleAutomation` by increasing polling timeouts and adjusting tick intervals.
- Verify project state with `go fmt`, `go vet`, and `golangci-lint`.
- Ensure all unit and E2E tests pass deterministically.
Diffstat (limited to 'internal/cli')
| -rw-r--r-- | internal/cli/cli.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 0e3b8ad..0a2ec96 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -42,13 +42,11 @@ func (a *App) Route() error { switch a.Args[1] { case "show-config": return a.showConfig() + case "profile": + return a.handleProfileCmd() } } - if len(a.Args) > 1 && a.Args[1] == "profile" { - return a.handleProfileCmd() - } - return a.Run() } |
