-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pub outdated: added clear message when no outdated packages. (#2898)
- Loading branch information
1 parent
2246387
commit 79f3a8b
Showing
3 changed files
with
174 additions
and
1 deletion.
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,121 @@ | ||
$ pub outdated --json | ||
{ | ||
"packages": [] | ||
} | ||
|
||
$ pub outdated --no-color | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Found no outdated packages | ||
|
||
$ pub outdated --no-color --no-transitive | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Found no outdated packages | ||
|
||
$ pub outdated --no-color --up-to-date | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo 2.0.0 2.0.0 2.0.0 2.0.0 | ||
|
||
dev_dependencies: | ||
bar 2.0.0 2.0.0 2.0.0 2.0.0 | ||
|
||
transitive dev_dependencies: | ||
devTransitive 1.0.0 1.0.0 1.0.0 1.0.0 | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
$ pub outdated --no-color --prereleases | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Found no outdated packages | ||
|
||
$ pub outdated --no-color --no-dev-dependencies | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Found no outdated packages | ||
|
||
$ pub outdated --no-color --no-dependency-overrides | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Found no outdated packages | ||
|
||
$ pub outdated --no-color --mode=null-safety | ||
Showing dependencies that are currently not opted in to null-safety. | ||
[✗] indicates versions without null safety support. | ||
[✓] indicates versions opting in to null safety. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: all support null safety. | ||
|
||
dev_dependencies: all support null safety. | ||
All dependencies opt in to null-safety. | ||
|
||
$ pub outdated --no-color --mode=null-safety --transitive | ||
Showing dependencies that are currently not opted in to null-safety. | ||
[✗] indicates versions without null safety support. | ||
[✓] indicates versions opting in to null safety. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: all support null safety. | ||
|
||
dev_dependencies: all support null safety. | ||
|
||
transitive dev_dependencies: | ||
devTransitive ✗1.0.0 ✗1.0.0 ✗1.0.0 ✗1.0.0 | ||
All dependencies opt in to null-safety. | ||
|
||
$ pub outdated --no-color --mode=null-safety --no-prereleases | ||
Showing dependencies that are currently not opted in to null-safety. | ||
[✗] indicates versions without null safety support. | ||
[✓] indicates versions opting in to null safety. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: all support null safety. | ||
|
||
dev_dependencies: all support null safety. | ||
All dependencies opt in to null-safety. | ||
|
||
$ pub outdated --json --mode=null-safety | ||
{ | ||
"packages": [ | ||
{ | ||
"package": "devTransitive", | ||
"current": { | ||
"version": "1.0.0", | ||
"nullSafety": false | ||
}, | ||
"upgradable": { | ||
"version": "1.0.0", | ||
"nullSafety": false | ||
}, | ||
"resolvable": { | ||
"version": "1.0.0", | ||
"nullSafety": false | ||
}, | ||
"latest": { | ||
"version": "1.0.0", | ||
"nullSafety": false | ||
} | ||
} | ||
] | ||
} | ||
|
||
$ pub outdated --json --no-dev-dependencies | ||
{ | ||
"packages": [] | ||
} | ||
|
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