Repository navigation
[Fix] Point the CLI at API Keys without naming an Organization section (PULSE-69) - #20
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--helpsent 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.pulse auth loginandpulse 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 theapiKeyPromptconstant), 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.--jsonoutput is unchanged (field names are the wire contract).Test Plan
gofmt -l,go vet ./...,go test ./...,go build ./cmd/pulse,goreleaser checkpulse --versionchecked