spack/lib/spack
Todd Gamblin 757f8ae59c
find: add --hashes shortcut for piping to other commands (#38663)
People frequently ask us how to pipe `spack find` output to other commands, and we tell
them to do things like this:

```console
$ spack find --format "/{hash}" | spack uninstall -ay
```

Sometimes users don't know about hash references and come up with potentially ambiguous
formulations like this:

```console
spack find --format {name}@{version}%{compiler} | spack uninstall -ay
```

Since this is a common enough thing to want to do, and to make it more obvious how, this
PR adds a `-H` / `--hashes` as a shortcut, so you can now just do:

```console
spack find -H | spack uninstall -ay
```
2023-07-10 09:43:37 +02:00
..
docs add info about spack env from spack-configs for oneAPI build tools (#38751) 2023-07-07 03:47:54 +00:00
env cc: Ensure that user-specified flags take precedence over others (#37376) 2023-06-18 14:07:08 -07:00
external Drop Python 2 object subclassing (#38720) 2023-07-05 14:37:44 +02:00
llnl Drop Python 2 super syntax (#38718) 2023-07-05 09:04:29 -05:00
spack find: add --hashes shortcut for piping to other commands (#38663) 2023-07-10 09:43:37 +02:00
spack_installable license year bump (#34921) 2023-01-18 14:30:17 -08:00