spack/lib/spack
Massimiliano Culpo 4bf7ce7d99 Better error message for spack providers (#7748)
* Better error message for spack providers

fixes #1355

`spack providers` now outputs a sensible error message if non-virtual
specs are provided as arguments:
```
$ spack providers mpi zlib petsc
==> Error: non-virtual specs cannot be part of the query [zlib, petsc]
```

Formatting of the output changed slightly.

* Calling 'spack providers' without arguments print the virtual pkg list

Also, the error message in case of a wrong parameter has been improved
to show the list of valid packages.

* Avoid printing headers if stdout is not a tty

* The provider list is formatted with colify if not in a tty

* Added a test to check the list of providers returned from the command
2018-04-17 07:30:32 -05:00
..
docs cray: add comment about module use in packages.yaml (#7751) 2018-04-13 11:53:26 -07:00
env Update copyright on LLNL files for 2018. (#7592) 2018-03-24 12:13:52 -07:00
external Update copyright on LLNL files for 2018. (#7592) 2018-03-24 12:13:52 -07:00
llnl Avoid double 'lib' for packages whose name already starts with lib (#7651) 2018-03-31 17:33:41 +02:00
spack Better error message for spack providers (#7748) 2018-04-17 07:30:32 -05:00