Skip to content

commands: spack load --list alias for spack find --loaded#27184

Merged
scheibelp merged 7 commits intodevelopfrom
spack-load-list
Nov 5, 2021
Merged

commands: spack load --list alias for spack find --loaded#27184
scheibelp merged 7 commits intodevelopfrom
spack-load-list

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented Nov 3, 2021

See #25249 and #27159 (comment).
This adds spack load --list as an alias for spack find --loaded. The new command is
not as powerful as spack find --loaded, as you can't combine it with all the queries or
formats that spack find provides. However, it is more intuitively located in the command
structure in that it appears in the output of spack load --help.

The idea here is that people can use spack load --list for simple stuff but fall back to
spack find --loaded if they need more.

  • add help to spack load --list that references spack find
  • factor some parts of spack find out to be called from spack load
  • add shell integration
  • add shell test
  • update completion
  • update docs

@spackbot-app spackbot-app bot added commands documentation Improvements or additions to documentation shell-support labels Nov 3, 2021
See #25249 and #27159 (comment).
This adds `spack load --list` as an alias for `spack find --loaded`.  The new command is
not as powerful as `spack find --loaded`, as you can't combine it with all the queries or
formats that `spack find` provides.  However, it is more intuitively located in the command
structure in that it appears in the output of `spack load --help`.

The idea here is that people can use `spack load --list`  for simple stuff but fall back to
`spack find --loaded` if they need more.

- [x] add help to `spack load --list` that references `spack find`
- [x] factor some parts of `spack find` out to be called from `spack load`
- [x] add shell integration
- [x] add shell test
- [x] update completion
- [x] update docs
mwkrentel
mwkrentel previously approved these changes Nov 3, 2021
Copy link
Copy Markdown
Member

@mwkrentel mwkrentel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I approve.

adamjstewart
adamjstewart previously approved these changes Nov 3, 2021
@RikkiButler20 RikkiButler20 self-requested a review November 4, 2021 23:25
RikkiButler20
RikkiButler20 previously approved these changes Nov 4, 2021
Copy link
Copy Markdown
Contributor

@RikkiButler20 RikkiButler20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tgamblin tgamblin enabled auto-merge (squash) November 5, 2021 00:30
tldahlgren
tldahlgren previously approved these changes Nov 5, 2021
Copy link
Copy Markdown
Member

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Prior review was approval and the only changes since are for style checks)

@scheibelp scheibelp merged commit e13e697 into develop Nov 5, 2021
@scheibelp scheibelp deleted the spack-load-list branch November 5, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands documentation Improvements or additions to documentation shell-support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants