-
-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): command clean
#2528
feat(cli): command clean
#2528
Conversation
45ad820
to
fd2ca7f
Compare
/// Runs the clean command | ||
pub fn clean(_cli_session: CliSession) -> Result<(), CliDiagnostic> { | ||
let logs_dir = biome_log_dir(); | ||
remove_dir_all(logs_dir.clone()).and_then(|_| create_dir(logs_dir))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we immediately recreate the dir? Wouldn't it be automatically recreated the next time you run biome
anyway? If so, it feels "cleaner" to just remove and leave it at that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's a Daemon running, it won't log anything anymore, and users would need to restart it manually to recreate the folder
Co-authored-by: unvalley <[email protected]>
Summary
Closes #1450
Test Plan
I tested it locally