diff options
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index e027a72b9..4801737a8 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1109,11 +1109,11 @@ fn bundle_subcommand() -> Command { .long_about( "Output a single JavaScript file with all dependencies. - deno bundle https://deno.land/std/examples/colors.ts colors.bundle.js + deno bundle https://deno.land/std/http/file_server.ts file_server.bundle.js If no output file is given, the output is written to standard output: - deno bundle https://deno.land/std/examples/colors.ts", + deno bundle https://deno.land/std/http/file_server.ts", ) .defer(|cmd| { compile_args(cmd) @@ -1201,7 +1201,7 @@ fn compile_subcommand() -> Command { "Compiles the given script into a self contained executable. deno compile -A https://deno.land/std/http/file_server.ts - deno compile --output color_util https://deno.land/std/examples/colors.ts + deno compile --output file_server https://deno.land/std/http/file_server.ts Any flags passed which affect runtime behavior, such as '--unstable', '--allow-*', '--v8-flags', etc. are encoded into the output executable and @@ -1730,7 +1730,7 @@ fn install_subcommand() -> Command { "Installs a script as an executable in the installation root's bin directory. deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts - deno install https://deno.land/std/examples/colors.ts + deno install https://examples.deno.land/color-logging.ts To change the executable name, use -n/--name: @@ -6365,14 +6365,14 @@ mod tests { let r = flags_from_vec(svec![ "deno", "install", - "https://deno.land/std/examples/colors.ts" + "https://deno.land/std/http/file_server.ts" ]); assert_eq!( r.unwrap(), Flags { subcommand: DenoSubcommand::Install(InstallFlags { name: None, - module_url: "https://deno.land/std/examples/colors.ts".to_string(), + module_url: "https://deno.land/std/http/file_server.ts".to_string(), args: vec![], root: None, force: false, @@ -7839,13 +7839,14 @@ mod tests { let r = flags_from_vec(svec![ "deno", "compile", - "https://deno.land/std/examples/colors.ts" + "https://examples.deno.land/color-logging.ts" ]); assert_eq!( r.unwrap(), Flags { subcommand: DenoSubcommand::Compile(CompileFlags { - source_file: "https://deno.land/std/examples/colors.ts".to_string(), + source_file: "https://examples.deno.land/color-logging.ts" + .to_string(), output: None, args: vec![], target: None, @@ -7861,12 +7862,13 @@ mod tests { #[test] fn compile_with_flags() { #[rustfmt::skip] - let r = flags_from_vec(svec!["deno", "compile", "--import-map", "import_map.json", "--no-remote", "--config", "tsconfig.json", "--no-check", "--unsafely-ignore-certificate-errors", "--reload", "--lock", "lock.json", "--lock-write", "--cert", "example.crt", "--cached-only", "--location", "https:foo", "--allow-read", "--allow-net", "--v8-flags=--help", "--seed", "1", "--no-terminal", "--output", "colors", "--env=.example.env", "https://deno.land/std/examples/colors.ts", "foo", "bar", "-p", "8080"]); + let r = flags_from_vec(svec!["deno", "compile", "--import-map", "import_map.json", "--no-remote", "--config", "tsconfig.json", "--no-check", "--unsafely-ignore-certificate-errors", "--reload", "--lock", "lock.json", "--lock-write", "--cert", "example.crt", "--cached-only", "--location", "https:foo", "--allow-read", "--allow-net", "--v8-flags=--help", "--seed", "1", "--no-terminal", "--output", "colors", "--env=.example.env", "https://examples.deno.land/color-logging.ts", "foo", "bar", "-p", "8080"]); assert_eq!( r.unwrap(), Flags { subcommand: DenoSubcommand::Compile(CompileFlags { - source_file: "https://deno.land/std/examples/colors.ts".to_string(), + source_file: "https://examples.deno.land/color-logging.ts" + .to_string(), output: Some(PathBuf::from("colors")), args: svec!["foo", "bar", "-p", "8080"], target: None, |