mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -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:
parent
e515f3dd0e
commit
4385020d14
1 changed files with 3 additions and 3 deletions
|
@ -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</>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue