diff options
| author | Dax Raad <[email protected]> | 2025-06-11 00:34:55 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-11 00:34:55 -0400 |
| commit | f1de1634d664c09ffdb667a1fd3a2e2e0c327a12 (patch) | |
| tree | 42d47a43d945108e66c6a122c03c0dd313061ab4 | |
| parent | 8d8663399d53dd31d0511875e7d486e3435c5e54 (diff) | |
| download | opencode-f1de1634d664c09ffdb667a1fd3a2e2e0c327a12.tar.gz opencode-f1de1634d664c09ffdb667a1fd3a2e2e0c327a12.zip | |
Standardize styling in auth commands by replacing Bun.color with UI.Style constants
🤖 Generated with [OpenCode](https://opencode.ai)
Co-Authored-By: OpenCode <[email protected]>
| -rw-r--r-- | packages/opencode/src/cli/cmd/auth.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/opencode/src/cli/cmd/auth.ts b/packages/opencode/src/cli/cmd/auth.ts index 36f1c52b3..b53cf03bd 100644 --- a/packages/opencode/src/cli/cmd/auth.ts +++ b/packages/opencode/src/cli/cmd/auth.ts @@ -29,7 +29,7 @@ export const AuthListCommand = cmd({ for (const [providerID, result] of results) { const name = database[providerID]?.name || providerID - prompts.log.info(`${name} ${Bun.color("gray", "ansi")}(${result.type})`) + prompts.log.info(`${name} ${UI.Style.TEXT_DIM}(${result.type})`) } prompts.outro(`${results.length} credentials`) @@ -133,7 +133,12 @@ export const AuthLogoutCommand = cmd({ const providerID = await prompts.select({ message: "Select provider", options: credentials.map(([key, value]) => ({ - label: database[key]?.name || key, + label: + (database[key]?.name || key) + + UI.Style.TEXT_DIM + + " (" + + value.type + + ")", value: key, })), }) |
