Skip to content

Commit 724232e

Browse files
authored
Remove dump command from rewatch cli (#7710)
1 parent 7953354 commit 724232e

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#### :boom: Breaking Change
1616

1717
- `Result.getOrThrow` now throws a JS error instead of a `Not_found` ReScript exception. https://github.com/rescript-lang/rescript/pull/7630
18+
- Remove `rescript dump` command. `bsc` can be used directly to dump the contents of a `.cmi` file instead if needed. https://github.com/rescript-lang/rescript/pull/7710
1819

1920
#### :rocket: New Feature
2021

rewatch/src/cli.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,6 @@ pub enum Command {
203203
#[arg(group = "format_input_mode", required_unless_present_any = ["format_input_mode"])]
204204
files: Vec<String>,
205205
},
206-
/// Alias to `legacy dump`.
207-
#[command(disable_help_flag = true)]
208-
Dump {
209-
#[arg(allow_hyphen_values = true, num_args = 0..)]
210-
dump_args: Vec<OsString>,
211-
},
212206
/// This prints the compiler arguments. It expects the path to a rescript file (.res or .resi).
213207
CompilerArgs {
214208
/// Path to a rescript file (.res or .resi)

rewatch/src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ fn main() -> Result<()> {
9797
check,
9898
files,
9999
} => format::format(stdin, all, check, files),
100-
cli::Command::Dump { mut dump_args } => {
101-
dump_args.insert(0, "dump".into());
102-
let code = build::pass_through_legacy(dump_args);
103-
std::process::exit(code);
104-
}
105100
}
106101
}
107102

0 commit comments

Comments
 (0)