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:
parent
e9ecfdd20a
commit
59dedf217f
1 changed files with 4 additions and 4 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue