Skip to content

Commit b4920b7

Browse files
authored
Rename ruff_cli to ruff_command_line (#28881)
## Summary This avoids a lot of complications revealed in today's release: https://github.com/astral-sh/crates-policies/actions/runs/36045427144/job/107787687611. ## Test Plan Today's release
1 parent 47c751b commit b4920b7

8 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ char_str = { version = "0.0.4", default-features = false, features = ["std"] }
1717
ruff = { version = "0.16.8", path = "crates/ruff" }
1818
ruff_annotate_snippets = { version = "0.0.14", path = "crates/ruff_annotate_snippets" }
1919
ruff_cache = { version = "0.0.14", path = "crates/ruff_cache" }
20-
ruff_cli = { version = "0.0.14", path = "crates/ruff_cli" }
20+
ruff_command_line = { version = "0.0.14", path = "crates/ruff_command_line" }
2121
ruff_db = { version = "0.0.14", path = "crates/ruff_db", default-features = false }
2222
ruff_diagnostics = { version = "0.0.14", path = "crates/ruff_diagnostics" }
2323
ruff_formatter = { version = "0.0.14", path = "crates/ruff_formatter" }

‎crates/ruff/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dist = true
2121

2222
[dependencies]
2323
ruff_cache = { workspace = true }
24-
ruff_cli = { workspace = true }
24+
ruff_command_line = { workspace = true }
2525
ruff_db = { workspace = true, default-features = false, features = ["os"] }
2626
ruff_diagnostics = { workspace = true }
2727
ruff_graph = { workspace = true, features = ["serde", "clap"] }

‎crates/ruff/src/main.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ fn main() -> ExitCode {
3333
assert!(colored::control::set_virtual_terminal(true).is_ok());
3434

3535
let args = wild::args_os();
36-
let args = match ruff_cli::expand_args(args).context("Failed to read CLI arguments from files")
36+
let args = match ruff_command_line::expand_args(args)
37+
.context("Failed to read CLI arguments from files")
3738
{
3839
Ok(args) => args,
3940
Err(err) => return report_error(&err),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ruff_cli"
2+
name = "ruff_command_line"
33
version = "0.0.14"
44
description = "This is an internal component crate of Ruff"
55
authors = { workspace = true }

‎crates/ty/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ license.workspace = true
1818
doctest = false
1919

2020
[dependencies]
21-
ruff_cli = { workspace = true }
21+
ruff_command_line = { workspace = true }
2222
ruff_db = { workspace = true, features = ["os", "cache", "junit"] }
2323
ruff_diagnostics = { workspace = true }
2424
ruff_python_ast = { workspace = true }

‎crates/ty/src/lib.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ pub fn run() -> anyhow::Result<ExitStatus> {
4747
ruff_db::set_program_version(crate::version::version().to_string()).unwrap();
4848

4949
let args = wild::args_os();
50-
let args = ruff_cli::expand_args(args).context("Failed to read CLI arguments from file")?;
50+
let args =
51+
ruff_command_line::expand_args(args).context("Failed to read CLI arguments from file")?;
5152
let args = Cli::parse_from(args);
5253

5354
match args.command {

0 commit comments

Comments
 (0)