Revert "Refactor external command (#6083)" (#6116)

This reverts commit 0646f1118c.
This commit is contained in:
JT
2022-07-26 05:37:15 +12:00
committed by GitHub
parent 3643ee6dfd
commit 475d32045f
7 changed files with 24 additions and 60 deletions

View File

@ -12,23 +12,7 @@ fn known_external_runs() -> TestResult {
fn known_external_unknown_flag() -> TestResult {
fail_test(
r#"extern "cargo version" []; cargo version --no-such-flag"#,
"Found argument '--no-such-flag' which wasn't expected, or isn't valid in this context",
)
}
#[test]
fn known_external_not_defined_flag() -> TestResult {
run_test_contains(
r#"extern "cargo version" []; cargo version --help"#,
"Show version information",
)
}
#[test]
fn known_external_is_custom() -> TestResult {
run_test_contains(
r#"extern "cargo version" []; help commands | where is_custom == true | get name"#,
"cargo version",
"command doesn't have flag",
)
}