1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

fix(init): update comment style (#17074)

The output of `init` are commands, so this should be treated as a "Shell
script". In Shell script, comments must start with `#`, not `//`. (This
also makes the commands example easier to be copied to somewhere.)
This commit is contained in:
Pig Fang 2022-12-18 06:26:25 +08:00 committed by GitHub
parent e9ecfdd20a
commit 59dedf217f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,19 +53,19 @@ pub async fn init_project(init_flags: InitFlags) -> Result<(), AnyError> {
info!(" cd {}", dir); info!(" cd {}", dir);
info!(""); info!("");
} }
info!(" {}", colors::gray("// Run the program")); info!(" {}", colors::gray("# Run the program"));
info!(" deno run main.ts"); info!(" deno run main.ts");
info!(""); info!("");
info!( info!(
" {}", " {}",
colors::gray("// Run the program and watch for file changes") colors::gray("# Run the program and watch for file changes")
); );
info!(" deno task dev"); info!(" deno task dev");
info!(""); info!("");
info!(" {}", colors::gray("// Run the tests")); info!(" {}", colors::gray("# Run the tests"));
info!(" deno test"); info!(" deno test");
info!(""); info!("");
info!(" {}", colors::gray("// Run the benchmarks")); info!(" {}", colors::gray("# Run the benchmarks"));
info!(" deno bench"); info!(" deno bench");
Ok(()) Ok(())
} }