SHA256
7
0
forked from pool/deno
2024-03-28 22:54:06 +00:00
committed by Git OBS Bridge
parent 81278a1983
commit b24ff8cedc
7 changed files with 137 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
index 72841df..1c93da1 100644
--- a/cli/args/flags.rs.1
+++ b/cli/args/flags.rs
@@ -281,15 +281,6 @@ pub struct TestFlags {
@@ -295,15 +295,6 @@ pub struct TestFlags {
pub junit_path: Option<String>,
}
@@ -32,12 +32,15 @@ index 72841df..1c93da1 100644
- pub force: bool,
- pub canary: bool,
- pub version: Option<String>,
- pub output: Option<PathBuf>,
- pub output: Option<String>,
-}
-
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct VendorFlags {
pub specifiers: Vec<String>,
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct VendorFlags {
pub specifiers: Vec<String>,
@@ -328,7 +319,6 @@ pub enum DenoSubcommand {
Task(TaskFlags),
Test(TestFlags),
@@ -71,7 +74,7 @@ index 72841df..1c93da1 100644
.subcommand(vendor_subcommand())
})
.long_about(DENO_HELP)
@@ -2262,61 +2250,6 @@ The declaration file could be saved and used for typing information.",
@@ -2413,60 +2404,6 @@ The declaration file could be saved and used for typing information.",
)
}
@@ -103,8 +106,7 @@ index 72841df..1c93da1 100644
- Arg::new("output")
- .long("output")
- .help("The path to output the updated version to")
- // todo(dsherret): remove value_parser!(PathBuf) and instead parse as string
- .value_parser(value_parser!(PathBuf))
- .value_parser(value_parser!(String))
- .value_hint(ValueHint::FilePath),
- )
- .arg(
@@ -133,7 +135,7 @@ index 72841df..1c93da1 100644
fn vendor_subcommand() -> Command {
Command::new("vendor")
.about("Vendor remote modules into a local directory")
@@ -3785,23 +3718,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
@@ -3965,23 +3902,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
flags.subcommand = DenoSubcommand::Types;
}
@@ -144,7 +146,7 @@ index 72841df..1c93da1 100644
- let force = matches.get_flag("force");
- let canary = matches.get_flag("canary");
- let version = matches.remove_one::<String>("version");
- let output = matches.remove_one::<PathBuf>("output");
- let output = matches.remove_one::<String>("output");
- flags.subcommand = DenoSubcommand::Upgrade(UpgradeFlags {
- dry_run,
- force,
@@ -157,7 +159,7 @@ index 72841df..1c93da1 100644
fn vendor_parse(flags: &mut Flags, matches: &mut ArgMatches) {
ca_file_arg_parse(flags, matches);
config_args_parse(flags, matches);
@@ -4251,25 +4167,6 @@ mod tests {
@@ -4442,25 +4362,6 @@ mod tests {
assert_eq!(flags2, flags);
}
@@ -181,8 +183,8 @@ index 72841df..1c93da1 100644
- }
-
#[test]
fn version() {
let r = flags_from_vec(svec!["deno", "--version"]);
fn upgrade_with_output_flag() {
let r = flags_from_vec(svec!["deno", "upgrade", "--output", "example.txt"]);
@@ -7509,25 +7406,6 @@ mod tests {
);
}