[rdct] use modern appstarter names in launcher scripts

GitOrigin-RevId: 73b12a568d49724d91cc835a75ad32b1ecdc1b48
This commit is contained in:
Nikolay Kuznetsov
2023-08-10 16:06:44 +02:00
committed by intellij-monorepo-bot
parent 6570ca8f92
commit 4a5b4e9085
2 changed files with 3 additions and 3 deletions

View File

@@ -537,8 +537,8 @@ impl std::fmt::Display for IjStarterCommand {
fn get_known_intellij_commands() -> HashMap<&'static str, IjStarterCommand> {
std::collections::HashMap::from([
("run", IjStarterCommand {ij_command: "cwmHostNoLobby".to_string(), is_project_path_required: true, is_arguments_required: true}),
("status", IjStarterCommand {ij_command: "cwmHostStatus".to_string(), is_project_path_required: false, is_arguments_required: false}),
("run", IjStarterCommand {ij_command: "remoteDevHost".to_string(), is_project_path_required: true, is_arguments_required: true}),
("status", IjStarterCommand {ij_command: "remoteDevStatus".to_string(), is_project_path_required: false, is_arguments_required: false}),
("cwmHostStatus", IjStarterCommand {ij_command: "cwmHostStatus".to_string(), is_project_path_required: false, is_arguments_required: false}),
("remoteDevStatus", IjStarterCommand {ij_command: "remoteDevStatus".to_string(), is_project_path_required: false, is_arguments_required: false}),
("dumpLaunchParameters", IjStarterCommand {ij_command: "dump-launch-parameters".to_string(), is_project_path_required: false, is_arguments_required: false}),

View File

@@ -44,7 +44,7 @@ mod tests {
let remote_dev_command = &["run", &project_dir];
let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command)).stdout;
assert!(output.contains("cwmHostNoLobby"), "output:\n{}", output);
assert!(output.contains("remoteDevHost"), "output:\n{}", output);
assert!(output.contains(project_dir), "output:\n{}", output);
assert!(!output.contains("Usage: ./remote-dev-server [ij_command_name] [/path/to/project] [arguments...]"), "output:\n{}", output);
}