From ed258ca9e9d4f88ed36cd87b21ae24091f516fc7 Mon Sep 17 00:00:00 2001 From: vvolkl Date: Mon, 7 Dec 2020 16:29:10 +0100 Subject: Add "spack versions --new" flag to only show new versions (#20030) * [cmd versions] add spack versions --new flag to only fetch new versions format [cmd versions] rename --latest to --newest and add --remote-only [cmd versions] add tests for --remote-only and --new format [cmd versions] update shell tab completion [cmd versions] remove test for --remote-only --new which gives empty output [cmd versions] final rename format * add brillig mock package * add test for spack versions --new * [brillig] format * [versions] increase test coverage * Update lib/spack/spack/cmd/versions.py Co-authored-by: Massimiliano Culpo * Update lib/spack/spack/cmd/versions.py Co-authored-by: Massimiliano Culpo Co-authored-by: Massimiliano Culpo --- share/spack/spack-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 7697cacdc3..1761fcb60d 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1649,7 +1649,7 @@ _spack_verify() { _spack_versions() { if $list_options then - SPACK_COMPREPLY="-h --help -s --safe-only -c --concurrency" + SPACK_COMPREPLY="-h --help -s --safe --safe-only -r --remote -n --new -c --concurrency" else _all_packages fi -- cgit v1.2.3-70-g09d2