Update docs how to display loaded modules#27159
Conversation
|
I also recommend adding reminders of You might also want to add a note at the bottom of |
lib/spack/docs/basic_usage.rst
Outdated
| $ spack load mpich %[email protected] | ||
| $ which mpicc | ||
| ~/spack/opt/linux-debian7-x86_64/[email protected]/[email protected]/bin/mpicc | ||
| $ spack find --loaded |
There was a problem hiding this comment.
The use of spack find --loaded seems out of the blue here.
The content might flow better as a separate subsection (as I mentioned in my previous comment).
I also suggest, FWIW, making When you no longer... at line 889 a separate paragraph to further emphasize its purpose.
|
This looks great, thanks! |
|
@tldahlgren |
It would be good to check but not necessary. It would likely be sufficient to mention the loaded packages can be checked using |
Moved it to Ambiguous Spec
Second. But if it were me, I would go farther. I would put a line in As I mentioned in #25249, I looked all through spack load, unload and I would go farther and make IMO, this is misplaced in find. |
|
Going to merge this as-is and do |
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
See spack#25249 and spack#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
See spack#25249 and spack#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
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 tests - update docs Co-authored-by: Peter Josef Scheibel <[email protected]> Co-authored-by: Richarda Butler <[email protected]>
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
See spack#25249 and spack#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
Closes #25249
Update the documentation on how to display a list of all modules loaded by
spack find --loaded