1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(cli): add prefix to install commands in help (#26318)

Some `deno add` and `deno install` example usage commands didn't have
the `jsr:` or `npm:` prefixes.

---------

Signed-off-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Marvin Hagemeister 2024-10-16 18:57:30 +02:00 committed by GitHub
parent e515f3dd0e
commit 4385020d14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1659,10 +1659,10 @@ fn add_subcommand() -> Command {
"add", "add",
cstr!( cstr!(
"Add dependencies to your configuration file. "Add dependencies to your configuration file.
<p(245)>deno add @std/path</> <p(245)>deno add jsr:@std/path</>
You can add multiple dependencies at once: You can add multiple dependencies at once:
<p(245)>deno add @std/path @std/assert</>" <p(245)>deno add jsr:@std/path jsr:@std/assert</>"
), ),
UnstableArgsConfig::None, UnstableArgsConfig::None,
) )
@ -2470,7 +2470,7 @@ in the package cache. If no dependency is specified, installs all dependencies l
If the <p(245)>--entrypoint</> flag is passed, installs the dependencies of the specified entrypoint(s). If the <p(245)>--entrypoint</> flag is passed, installs the dependencies of the specified entrypoint(s).
<p(245)>deno install</> <p(245)>deno install</>
<p(245)>deno install @std/bytes</> <p(245)>deno install jsr:@std/bytes</>
<p(245)>deno install npm:chalk</> <p(245)>deno install npm:chalk</>
<p(245)>deno install --entrypoint entry1.ts entry2.ts</> <p(245)>deno install --entrypoint entry1.ts entry2.ts</>