MCPcopy Create free account
hub / github.com/arctic-cli/interface / formatDisplayName

Function formatDisplayName

packages/arctic/src/auth/index.ts:90–93  ·  view source on GitHub ↗
(provider: string, connection?: string)

Source from the content-addressed store, hash-verified

88 }
89
90 export function formatDisplayName(provider: string, connection?: string): string {
91 if (!connection) return provider
92 return `${provider} (${connection})`
93 }
94
95 export function parseDisplayName(displayName: string): { provider: string; connection?: string } {
96 const match = displayName.match(/^(.+?)\s*\((.+)\)$/)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected