Skip to content
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

chore: rename rome_cli to biome_cli #211

Merged
merged 3 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
bench_analyzer = "run -p xtask_bench --release -- --feature analyzer"
bench_formatter = "run -p xtask_bench --release -- --feature formatter"
bench_parser = "run -p xtask_bench --release -- --feature parser"
biome-cli = "run -p rome_cli --release --"
biome-cli-dev = "run -p rome_cli --"
biome-cli = "run -p biome_cli --release --"
biome-cli-dev = "run -p biome_cli --"
codegen = "run -p xtask_codegen --"
codegen-bindings = "run -p xtask_codegen --features schema -- bindings"
codegen-configuration = "run -p xtask_codegen --features configuration -- configuration"
Expand All @@ -21,7 +21,7 @@ documentation = """
-p rome_*_factory \
-p biome_diagnostics \
-p rome_service \
-p rome_cli \
-p biome_cli \
-p rome_console \
-p rome_*parser \
-p biome_text_edit \
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ crates/rome_js_formatter/tests/**/*.ts.prettier-snap linguist-language=TypeScrip
crates/rome_js_formatter/tests/**/*.js.prettier-snap linguist-language=JavaScript
crates/rome_js_formatter/tests/**/*.ts.snap linguist-language=Markdown
crates/rome_js_formatter/tests/**/*.js.snap linguist-language=Markdown
crates/rome_cli/tests/**/*.snap linguist-language=Markdown
crates/biome_cli/tests/**/*.snap linguist-language=Markdown
crates/rome_js_analyze/tests/specs/**/*.snap linguist-language=Markdown


2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://github.com/actions/labeler

A-Cli:
- crates/rome_cli/**
- crates/biome_cli/**
- crates/rome_fs/**
- crates/rome_console/**

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@v0
- name: Build main binary
run: cargo build -p rome_cli --release
run: cargo build -p biome_cli --release

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:

# Build the CLI binary
- name: Build binaries
run: cargo build -p rome_cli --release --target ${{ matrix.target }}
run: cargo build -p biome_cli --release --target ${{ matrix.target }}
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
# Strip all debug symbols from the resulting binaries
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:

# Build the LSP binary
- name: Build binaries
run: cargo build -p rome_cli --release --target ${{ matrix.target }}
run: cargo build -p biome_cli --release --target ${{ matrix.target }}
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
# Strip all debug symbols from the resulting binaries
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ just test
If you want to test the tests for a single crate:

```shell
just test-crate rome_cli
just test-crate biome_cli
```

To run only the doctests, you would need to pass an argument to the command:
Expand Down
84 changes: 42 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ inherits = "release"
biome_analyze = { path = "./crates/biome_analyze" }
biome_aria = { path = "./crates/biome_aria" }
biome_aria_metadata = { path = "./crates/biome_aria_metadata" }
biome_cli = { path = "./crates/biome_cli" }
biome_css_factory = { path = "./crates/biome_css_factory" }
biome_css_parser = { path = "./crates/biome_css_parser" }
biome_css_syntax = { path = "./crates/biome_css_syntax" }
Expand All @@ -44,7 +45,6 @@ biome_suppression = { version = "0.2.0", path = "./crates/biome_suppr
biome_test_utils = { path = "./crates/biome_test_utils" }
biome_text_edit = { version = "0.0.1", path = "./crates/biome_text_edit" }
biome_text_size = { version = "0.0.1", path = "./crates/biome_text_size" }
rome_cli = { path = "./crates/rome_cli" }
rome_console = { version = "0.0.1", path = "./crates/rome_console" }
rome_control_flow = { path = "./crates/rome_control_flow" }
rome_deserialize = { version = "0.2.0", path = "./crates/rome_deserialize" }
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_cli/Cargo.toml → crates/biome_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors.workspace = true
edition.workspace = true
license.workspace = true
name = "rome_cli"
name = "biome_cli"
repository.workspace = true
version = "0.0.0"

Expand Down
2 changes: 1 addition & 1 deletion crates/rome_cli/README.md → crates/biome_cli/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `rome_cli`
# `biome_cli`

The main binary distribution, exposes the command line interface defined in this crate,
and the language server interface defined in `biome_lsp` and used by the `biome` VSCode extension
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions crates/rome_cli/src/main.rs → crates/biome_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//!
//! [website]: https://biomejs.dev

use biome_diagnostics::{set_bottom_frame, PrintDiagnostic};
use bpaf::{Args, ParseFailure};
use rome_cli::{
use biome_cli::{
biome_command, open_transport, setup_panic_handler, to_color_mode, BiomeCommand, CliDiagnostic,
CliSession,
};
use biome_diagnostics::{set_bottom_frame, PrintDiagnostic};
use bpaf::{Args, ParseFailure};
use rome_console::{markup, ConsoleExt, EnvConsole};
use rome_service::workspace;
use std::process::{ExitCode, Termination};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::run_cli;
use crate::snap_test::{CliSnapshot, SnapshotPayload};
use biome_cli::CliDiagnostic;
use bpaf::Args;
use rome_cli::CliDiagnostic;
use rome_console::{BufferConsole, Console};
use rome_fs::{FileSystem, MemoryFileSystem};
use rome_service::DynRef;
Expand Down Expand Up @@ -101,7 +101,7 @@ fn with_server_logs() {
fs::create_dir_all(&log_dir.path).expect("Failed to create test log directory");

fs::write(log_dir.path.join("server.log.2022-10-14-16"), r#"
rome_cli::commands::daemon::Running Server{pid=195434}
biome_cli::commands::daemon::Running Server{pid=195434}
├─2547ms INFO biome_lsp::server Starting Biome Language Server...
├─15333ms INFO biome_lsp::server Starting Biome Language Server...
├─15347ms INFO biome_lsp::server Attempting to load the configuration from 'biome.json' file
Expand All @@ -115,10 +115,10 @@ fn with_server_logs() {
├─16108ms INFO biome_lsp::server Starting Biome Language Server...
├─41801ms INFO biome_lsp::server Starting Biome Language Server...
├─41802ms INFO biome_lsp::server Sending shutdown signal
INFO rome_cli::commands::daemon Received shutdown signal
INFO biome_cli::commands::daemon Received shutdown signal
├─41802ms ERROR tower_lsp::transport failed to encode message: failed to encode response: Broken pipe (os error 32)
rome_cli::commands::daemon::Running Server{pid=197796}
biome_cli::commands::daemon::Running Server{pid=197796}
├─2822ms INFO biome_lsp::server Starting Biome Language Server...
├─7550ms INFO biome_lsp::server Starting Biome Language Server...
├─7551ms INFO biome_lsp::server Attempting to load the configuration from 'biome.json' file
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use snap_test::assert_cli_snapshot;
use bpaf::ParseFailure;
use std::path::Path;

use rome_cli::{biome_command, CliDiagnostic, CliSession};
use biome_cli::{biome_command, CliDiagnostic, CliSession};
use rome_console::{markup, BufferConsole, Console, ConsoleExt};
use rome_fs::{FileSystem, MemoryFileSystem};
use rome_service::{App, DynRef};
Expand Down Expand Up @@ -398,8 +398,8 @@ pub(crate) fn run_cli<'app>(
console: &'app mut dyn Console,
args: bpaf::Args,
) -> Result<(), CliDiagnostic> {
use biome_cli::SocketTransport;
use biome_lsp::ServerFactory;
use rome_cli::SocketTransport;
use rome_service::{workspace, WorkspaceRef};
use tokio::{
io::{duplex, split},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use biome_cli::CliDiagnostic;
use biome_diagnostics::termcolor::NoColor;
use biome_diagnostics::{print_diagnostic_to_string, Error};
use rome_cli::CliDiagnostic;
use rome_console::fmt::{Formatter, Termcolor};
use rome_console::{markup, BufferConsole, Markup};
use rome_formatter::IndentStyle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `config/biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `biome.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `check.js`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `fix.js`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `fix.js`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rome_cli/tests/snap_test.rs
source: crates/biome_cli/tests/snap_test.rs
expression: content
---
## `fix.js`
Expand Down
Loading