Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added mise outdated --all flag #4060

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cli/outdated.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ If not specified, all tools in global and local configs will be shown

## Flags

### `-a --all`

Show outdated tools from all tracked config files

### `-l --bump`

Compares against the latest versions available, not what matches the current config
Expand Down
1 change: 1 addition & 0 deletions mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ cmd ls-remote help="List runtime versions available for install." {
cmd outdated help="Shows outdated tool versions" {
long_help "Shows outdated tool versions\n\nSee `mise upgrade` to upgrade these versions."
after_long_help "Examples:\n\n $ mise outdated\n Plugin Requested Current Latest\n python 3.11 3.11.0 3.11.1\n node 20 20.0.0 20.1.0\n\n $ mise outdated node\n Plugin Requested Current Latest\n node 20 20.0.0 20.1.0\n\n $ mise outdated --json\n {\"python\": {\"requested\": \"3.11\", \"current\": \"3.11.0\", \"latest\": \"3.11.1\"}, ...}\n"
flag "-a --all" help="Show outdated tools from all tracked config files"
flag "-l --bump" help="Compares against the latest versions available, not what matches the current config" {
long_help "Compares against the latest versions available, not what matches the current config\n\nFor example, if you have `node = \"20\"` in your config by default `mise outdated` will only\nshow other 20.x versions, not 21.x or 22.x versions.\n\nUsing this flag, if there are 21.x or newer versions it will display those instead of 20.x."
}
Expand Down
4 changes: 4 additions & 0 deletions src/cli/outdated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub struct Outdated {
#[clap(value_name = "TOOL@VERSION", verbatim_doc_comment)]
pub tool: Vec<ToolArg>,

/// Show outdated tools from all tracked config files
#[clap(long, short, verbatim_doc_comment)]
pub all: bool,

/// Compares against the latest versions available, not what matches the current config
///
/// For example, if you have `node = "20"` in your config by default `mise outdated` will only
Expand Down
5 changes: 5 additions & 0 deletions xtasks/fig/src/mise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,11 @@ const completionSpec: Fig.Spec = {
name: "outdated",
description: "Shows outdated tool versions",
options: [
{
name: ["-a", "--all"],
description: "Show outdated tools from all tracked config files",
isRepeatable: false,
},
{
name: ["-l", "--bump"],
description:
Expand Down
Loading