diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-09-01 16:42:53 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-09-02 19:24:48 -0700 |
commit | 1a1f5674dfbabf6a9b91933b15304acd7f3e64f0 (patch) | |
tree | 83d8608e10f6ae720aa52f535e49834e534e300b /.flake8_packages | |
parent | 64af0a9874f64e058f885cac16b403868d981dc4 (diff) | |
download | spack-1a1f5674dfbabf6a9b91933b15304acd7f3e64f0.tar.gz spack-1a1f5674dfbabf6a9b91933b15304acd7f3e64f0.tar.bz2 spack-1a1f5674dfbabf6a9b91933b15304acd7f3e64f0.tar.xz spack-1a1f5674dfbabf6a9b91933b15304acd7f3e64f0.zip |
command: add `spack find --json`
This is another machine-readable version of `spack find`. Supplying the
`--json` argument causes specs to be written out as json records,
easily filered with tools like jq.
e.g.:
$ spack find --json python | jq -C ".[] | { name, version } "
[
{
"name": "python",
"version": "2.7.16"
},
{
"name": "bzip2",
"version": "1.0.8"
}
]
Diffstat (limited to '.flake8_packages')
0 files changed, 0 insertions, 0 deletions