Skip to content

[Fix] Point the CLI at API Keys without naming an Organization section (PULSE-69) - #20

Merged
uz1mani merged 1 commit into
mainfrom
pulse-69-cli-words
Sep 26, 2026
Merged

uz1mani merged 1 commit into
mainfrom
pulse-69-cli-words

Conversation

@uz1mani

@uz1mani uz1mani commented Sep 26, 2026

Copy link
Copy Markdown
Member

Summary

  • The login prompt and --help sent every new user to "Settings → Organization → API Keys", which no longer exists. They now say "Settings, under API Keys", a path that exists whether or not the person has a team.
  • The team id line reads "Team" instead of "Organization" in pulse auth login and pulse auth status.

Refs #19. PULSE-69: https://plane-sks.ciphera.net/ciphera/projects/7f1d6ca7-7bcb-4af3-ba59-b5051602efa1/issues/7b312147-24c0-4f5a-993c-41ba6b264811

Changes

  • internal/cli/auth.go: the help text, the prompt (now the apiKeyPrompt constant), the post-login note and the status row label.
  • internal/cli/auth_test.go: pins the prompt text and the status row label.
  • README.md: the console example.
  • --json output is unchanged (field names are the wire contract).

Test Plan

  • gofmt -l, go vet ./..., go test ./..., go build ./cmd/pulse, goreleaser check
  • The status label test fails when "Organization" is put back
  • Released as v1.4.1 with its cask; installed the way a user does and pulse --version checked
  • docs.ciphera.net/pulse/cli updated to the new output

…n (PULSE-69)

The login help text, the login prompt, the post-login note and the
`auth status` row all said "Organization", including a settings path
("Settings → Organization → API Keys") that does not exist for someone
who works alone under the optional-workspaces model. The prompt and
help text now point at Settings generically; the id row is now
labelled "Team", per the owner's ruling. --json output is unchanged.

Extracted the login prompt into a named constant so a test can pin
its wording without needing to fake a terminal, and added a test that
pins the `auth status` row label via the existing test-server seam.
@uz1mani uz1mani self-assigned this Sep 26, 2026
@uz1mani
uz1mani merged commit 2a7f843 into main Sep 26, 2026
2 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.

1 participant