Browse Source

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]>
Dax Raad 8 months ago
parent
commit
f1de1634d6
1 changed files with 7 additions and 2 deletions
  1. 7 2
      packages/opencode/src/cli/cmd/auth.ts

+ 7 - 2
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,
       })),
     })