-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added hint about --bump flag for upgrade/outdated (#2761)
Fixes #2759
- Loading branch information
Showing
5 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo 'dummy 1' >.tool-versions | ||
mise install [email protected] | ||
|
||
assert_contains "mise ls --installed dummy" "1.0.0" | ||
assert_not_contains "mise ls --installed dummy" "1.1.0" | ||
|
||
#mise outdated dummy | ||
#assert_contains "mise ls --installed dummy" "1.1.0" | ||
#assert_not_contains "mise ls --installed dummy" "1.0.0" | ||
|
||
assert "mise outdated dummy" "dummy 1 1.0.0 1.1.0 ~/workdir/.tool-versions" | ||
assert "mise outdated dummy --bump" "dummy 1 1.0.0 2.0.0 ~/workdir/.tool-versions" | ||
|
||
assert "mise outdated dummy --json | jq -r '.dummy.latest'" "1.1.0" | ||
assert "mise outdated dummy --bump --json | jq -r '.dummy.latest'" "2.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters