Add sc whoami #25
No reviewers
Labels
No labels
⏳in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grey.ooo/someones.computer_agent!25
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/whoami"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #578 — the terminal half of the same question the tray's new identity row answers.
sc loginsays a token was stored and nothing afterwards says whose. Fine with one endpoint and one machine; confusing with more, since tokens are stored per endpoint, named per device, and a stale$SC_TOKENsilently outranks a freshsc login.Where the token was read from is half the answer to "why am I this user?", which is the surprising case this exists for.
Needs scclient #3, pinned and vendored here.
go build,go vet,go test ./...clean; tests cover the full output, a platform that named no token, a missing token, a platform too old for the route, and the source mapping.sc whoamiWIP: Add sc whoamito Add sc whoami