Initialize global consola logger in CLI#70
Merged
Conversation
Set formatOptions.date to false to suppress timestamps that are unnecessary for CLI usage. https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh
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
Coverage Report
File CoverageNo changed files found. |
…a-timestamp-Dofw8
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds initialization of a global
consolalogger instance in the CLI entry point. This sets up a non-fancy console logger that can be used throughout the CLI application for consistent logging behavior.The change imports
createConsolafrom the consola package and creates a global instance withfancy: falseconfiguration, making it available viaglobalThis.consola.Test plan
N/A - This is a straightforward initialization change. Verify that the CLI starts without errors and that any existing logging functionality continues to work as expected.
https://claude.ai/code/session_011823SsAVT5oAoqN7YvGzuh