Skip to content

Commit

Permalink
fix(cli): rage command should not print any logs around servers (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Oct 20, 2023
1 parent 719c745 commit 9639141
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

### CLI

#### Bug fixes

- Fix `rage` command, now it doesn't print info about running servers. Contributed by @ematipico

### Configuration

### Editors
Expand Down
27 changes: 14 additions & 13 deletions crates/biome_cli/src/commands/rage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@ pub(crate) fn rage(session: CliSession, daemon_logs: bool) -> Result<(), CliDiag
{WorkspaceRage(session.app.workspace.deref())}
));

match session.app.workspace.server_info() {
Some(_) if daemon_logs => {
session.app.console.log(markup!({
ConnectedClientServerLog(session.app.workspace.deref())
}));
}
None => {
session
.app
.console
.log(markup!("Discovering running Biome servers..."));
session.app.console.log(markup!({ RunningRomeServer }));
if daemon_logs {
match session.app.workspace.server_info() {
Some(_) => {
session.app.console.log(markup!({
ConnectedClientServerLog(session.app.workspace.deref())
}));
}
None => {
session
.app
.console
.log(markup!("Discovering running Biome servers..."));
session.app.console.log(markup!({ RunningRomeServer }));
}
}
_ => {}
}
Ok(())
}
Expand Down
4 changes: 4 additions & 0 deletions website/src/content/docs/internals/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

### CLI

#### Bug fixes

- Fix `rage` command, now it doesn't print info about running servers. Contributed by @ematipico

### Configuration

### Editors
Expand Down

0 comments on commit 9639141

Please sign in to comment.