diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-10-22 16:13:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 14:13:11 +0000 |
commit | ef9bb7ebe59fc6053c7c8a2b9323a6037c10393e (patch) | |
tree | fd0a23951bde279369ee79578c244d81696568dc /share | |
parent | fc443ea30e68d20e6efdf7186030ae07d6f81efc (diff) | |
download | spack-ef9bb7ebe59fc6053c7c8a2b9323a6037c10393e.tar.gz spack-ef9bb7ebe59fc6053c7c8a2b9323a6037c10393e.tar.bz2 spack-ef9bb7ebe59fc6053c7c8a2b9323a6037c10393e.tar.xz spack-ef9bb7ebe59fc6053c7c8a2b9323a6037c10393e.zip |
spack arch: add --family --generic flags (#47078)
This allows users to do:
```
spack install ... target=$(spack arch --target --family)
spack install ... arch=$(spack arch --family)
spack install ... target=$(spack arch --target --generic)
spack install ... arch=$(spack arch --generic)
```
Deprecate `--generic-target` in favor of `--generic --target`
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/spack-completion.bash | 2 | ||||
-rw-r--r-- | share/spack/spack-completion.fish | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 0cadf7b12d..2bb52ecc05 100644 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -415,7 +415,7 @@ _spack_add() { } _spack_arch() { - SPACK_COMPREPLY="-h --help -g --generic-target --known-targets -p --platform -o --operating-system -t --target -f --frontend -b --backend" + SPACK_COMPREPLY="-h --help -g --generic-target --known-targets --family --generic -p --platform -o --operating-system -t --target -f --frontend -b --backend" } _spack_audit() { diff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish index 172af7e8f3..ec13420a8d 100644 --- a/share/spack/spack-completion.fish +++ b/share/spack/spack-completion.fish @@ -489,13 +489,17 @@ complete -c spack -n '__fish_spack_using_command add' -s l -l list-name -r -f -a complete -c spack -n '__fish_spack_using_command add' -s l -l list-name -r -d 'name of the list to add specs to' # spack arch -set -g __fish_spack_optspecs_spack_arch h/help g/generic-target known-targets p/platform o/operating-system t/target f/frontend b/backend +set -g __fish_spack_optspecs_spack_arch h/help g/generic-target known-targets family generic p/platform o/operating-system t/target f/frontend b/backend complete -c spack -n '__fish_spack_using_command arch' -s h -l help -f -a help complete -c spack -n '__fish_spack_using_command arch' -s h -l help -d 'show this help message and exit' complete -c spack -n '__fish_spack_using_command arch' -s g -l generic-target -f -a generic_target -complete -c spack -n '__fish_spack_using_command arch' -s g -l generic-target -d 'show the best generic target' +complete -c spack -n '__fish_spack_using_command arch' -s g -l generic-target -d 'show the best generic target (deprecated)' complete -c spack -n '__fish_spack_using_command arch' -l known-targets -f -a known_targets complete -c spack -n '__fish_spack_using_command arch' -l known-targets -d 'show a list of all known targets and exit' +complete -c spack -n '__fish_spack_using_command arch' -l family -f -a family +complete -c spack -n '__fish_spack_using_command arch' -l family -d 'print generic ISA (x86_64, aarch64, ppc64le, ...)' +complete -c spack -n '__fish_spack_using_command arch' -l generic -f -a generic +complete -c spack -n '__fish_spack_using_command arch' -l generic -d 'print feature level (x86_64_v3, armv8.4a, ...)' complete -c spack -n '__fish_spack_using_command arch' -s p -l platform -f -a platform complete -c spack -n '__fish_spack_using_command arch' -s p -l platform -d 'print only the platform' complete -c spack -n '__fish_spack_using_command arch' -s o -l operating-system -f -a operating_system |