Skip to content

Commit 117bff6

Browse files
lollipop-onlclaude
andauthored
Initialize global consola logger in CLI (#70)
* Disable consola timestamp in CLI output Set formatOptions.date to false to suppress timestamps that are unnecessary for CLI usage. https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh * Use basic reporter instead of fancy for consola CLI tool doesn't need fancy reporter's box decorations or timestamps. Switch to basic reporter via createConsola({ fancy: false }). https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh * fix: use consola.options.formatOptions.date to disable timestamp Simplify the approach to disable timestamps by setting the option on the existing consola instance instead of creating a new one with the basic reporter. This fixes the TypeScript type error. https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 81ae11a commit 117bff6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/cli/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import consola from "consola";
12
import { BeeCommand } from "./lib/bee-command";
23
import { handleError } from "./lib/error";
34
import pkg from "../package.json" with { type: "json" };
45

6+
consola.options.formatOptions.date = false;
7+
58
const program = new BeeCommand("bee").version(pkg.version).description(pkg.description ?? "");
69

710
await program.addCommands([

0 commit comments

Comments
 (0)