From 0f5fd50feca8736b2c8a7f52be5acf3264e1fcaf Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 29 Jan 2026 11:34:56 -0800 Subject: [PATCH] colors --- bun.lock | 1 + package.json | 3 ++- src/cli/index.ts | 9 +++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bun.lock b/bun.lock index 3f7abd2..7c20338 100644 --- a/bun.lock +++ b/bun.lock @@ -8,6 +8,7 @@ "commander": "^14.0.2", "forge": "git+https://git.nose.space/defunkt/forge", "hype": "git+https://git.nose.space/defunkt/hype", + "kleur": "^4.1.5", }, "devDependencies": { "@types/bun": "latest", diff --git a/package.json b/package.json index edc310f..9df6796 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dependencies": { "commander": "^14.0.2", "forge": "git+https://git.nose.space/defunkt/forge", - "hype": "git+https://git.nose.space/defunkt/hype" + "hype": "git+https://git.nose.space/defunkt/hype", + "kleur": "^4.1.5" } } diff --git a/src/cli/index.ts b/src/cli/index.ts index 9b74099..2d3cbe9 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -1,15 +1,16 @@ import { program } from 'commander' import { join } from 'path' import type { App, LogLine } from '@types' +import color from 'kleur' import { APPS_DIR } from '$apps' const HOST = `http://localhost:${process.env.PORT ?? 3000}` const STATE_ICONS: Record = { - running: '●', - starting: '◎', - stopped: '◯', - invalid: '◌', + running: color.green('●'), + starting: color.yellow('◎'), + stopped: color.gray('◯'), + invalid: color.red('◌'), } async function get(url: string): Promise {