MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatAccountLabel

Function formatAccountLabel

packages/opencode/src/cli/cmd/account.ts:20–21  ·  view source on GitHub ↗
(account: { email: string; url: string }, isActive: boolean)

Source from the content-addressed store, hash-verified

18export const defaultConsoleUrl = "https://console.opencode.ai"
19
20export const formatAccountLabel = (account: { email: string; url: string }, isActive: boolean) =>
21 `${account.email} ${dim(account.url)}${activeSuffix(isActive)}`
22
23const formatOrgChoiceLabel = (account: { email: string }, org: { name: string }, isActive: boolean) =>
24 `${org.name} (${account.email})${activeSuffix(isActive)}`

Callers 2

account.test.tsFile · 0.90
account.tsFile · 0.85

Calls 2

dimFunction · 0.85
activeSuffixFunction · 0.85

Tested by

no test coverage detected