mirror of
https://github.com/denoland/deno.git
synced 2025-01-18 03:44:05 -05:00
fix(outdated): allow --latest
without --update
(#27227)
Ref #27025. it does nothing (it's the default behavior) but it doesn't hurt to allow it
This commit is contained in:
parent
f0586238fc
commit
e718e3f471
1 changed files with 10 additions and 3 deletions
|
@ -2664,10 +2664,10 @@ Display outdated dependencies:
|
||||||
<p(245)>deno outdated</>
|
<p(245)>deno outdated</>
|
||||||
<p(245)>deno outdated --compatible</>
|
<p(245)>deno outdated --compatible</>
|
||||||
|
|
||||||
Update dependencies:
|
Update dependencies to latest semver compatible versions:
|
||||||
<p(245)>deno outdated --update</>
|
<p(245)>deno outdated --update</>
|
||||||
|
Update dependencies to latest versions, ignoring semver requirements:
|
||||||
<p(245)>deno outdated --update --latest</>
|
<p(245)>deno outdated --update --latest</>
|
||||||
<p(245)>deno outdated --update</>
|
|
||||||
|
|
||||||
Filters can be used to select which packages to act on. Filters can include wildcards (*) to match multiple packages.
|
Filters can be used to select which packages to act on. Filters can include wildcards (*) to match multiple packages.
|
||||||
<p(245)>deno outdated --update --latest \"@std/*\"</>
|
<p(245)>deno outdated --update --latest \"@std/*\"</>
|
||||||
|
@ -2703,7 +2703,6 @@ Specific version requirements to update to can be specified:
|
||||||
.help(
|
.help(
|
||||||
"Update to the latest version, regardless of semver constraints",
|
"Update to the latest version, regardless of semver constraints",
|
||||||
)
|
)
|
||||||
.requires("update")
|
|
||||||
.conflicts_with("compatible"),
|
.conflicts_with("compatible"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -11687,6 +11686,14 @@ Usage: deno repl [OPTIONS] [-- [ARGS]...]\n"
|
||||||
recursive: false,
|
recursive: false,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
svec!["--latest"],
|
||||||
|
OutdatedFlags {
|
||||||
|
filters: svec![],
|
||||||
|
kind: OutdatedKind::PrintOutdated { compatible: false },
|
||||||
|
recursive: false,
|
||||||
|
},
|
||||||
|
),
|
||||||
];
|
];
|
||||||
for (input, expected) in cases {
|
for (input, expected) in cases {
|
||||||
let mut args = svec!["deno", "outdated"];
|
let mut args = svec!["deno", "outdated"];
|
||||||
|
|
Loading…
Add table
Reference in a new issue