Skip to content

Commit 747f58f

Browse files
committed
Remove rescript convert subcommand
1 parent 87cfb34 commit 747f58f

File tree

4 files changed

+0
-170
lines changed

4 files changed

+0
-170
lines changed

cli/rescript_convert.js

-128
This file was deleted.

jscomp/build_tests/cli_help/input.js

-32
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const cliHelp =
1616
" build\n" +
1717
" clean\n" +
1818
" format\n" +
19-
" convert\n" +
2019
" dump\n" +
2120
" help\n" +
2221
"\n" +
@@ -58,17 +57,6 @@ const formatHelp =
5857
" -all Format the whole project \n" +
5958
" -check Check formatting for file or the whole project. Use `-all` to check the whole project\n";
6059

61-
const convertHelp =
62-
"Usage: rescript convert <options> [files]\n" +
63-
"\n" +
64-
"`rescript convert` converts the current directory\n" +
65-
"\n" +
66-
"**This command removes old OCaml files and creates new ReScript \n" +
67-
"files. Make sure your work is saved first!**\n" +
68-
"\n" +
69-
"Options:\n" +
70-
" -all Convert the whole project\n";
71-
7260
const dumpHelp =
7361
"Usage: rescript dump <options> [target]\n" +
7462
"`rescript dump` dumps the information for the target\n";
@@ -232,26 +220,6 @@ async function test() {
232220
assert.equal(out.status, 0);
233221
}
234222

235-
{
236-
// Shows convert help with --help arg
237-
const out = await exec(`../../../rescript`, ["convert", "--help"], {
238-
cwd: __dirname,
239-
});
240-
assert.equal(out.stdout, convertHelp);
241-
assert.equal(out.stderr, "");
242-
assert.equal(out.status, 0);
243-
}
244-
245-
{
246-
// Shows convert help with -h arg
247-
const out = await exec(`../../../rescript`, ["convert", "-h"], {
248-
cwd: __dirname,
249-
});
250-
assert.equal(out.stdout, convertHelp);
251-
assert.equal(out.stderr, "");
252-
assert.equal(out.status, 0);
253-
}
254-
255223
{
256224
// Shows dump help with --help arg
257225
const out = await exec(`../../../rescript`, ["dump", "--help"], {

packages/artifacts.txt

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ bsc
88
cli/bin_path.js
99
cli/rescript_arg.js
1010
cli/rescript_bsb.js
11-
cli/rescript_convert.js
1211
cli/rescript_dump.js
1312
cli/rescript_format.js
1413
cli/rescript_postinstall.js

rescript

-9
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Subcommands:
3636
build
3737
clean
3838
format
39-
convert
4039
dump
4140
help
4241
@@ -119,14 +118,6 @@ if (helpArgIndex !== -1 && (firstPositionalArgIndex === -1 || helpArgIndex <= fi
119118
);
120119
break;
121120
}
122-
case "convert": {
123-
require("./cli/rescript_convert.js").main(
124-
subcmdArgs,
125-
rescript_exe,
126-
bsc_exe
127-
);
128-
break;
129-
}
130121
default: {
131122
console.error(
132123
`Error: Unknown command "${subcmd}".\n${helpMessage}`

0 commit comments

Comments
 (0)