Commit Graph

269 Commits

Author SHA1 Message Date
gsell 18dae1f6df modulecmd: improved output of available overlays in sub-cmd use 2022-02-18 13:08:13 +01:00
gsell dfca6fc2c9 modulecmd: bugfix in find_module()
The result of the find command was stored as string not as bash array.
2022-01-18 17:51:33 +01:00
gsell 7c12c6e77e modulecmd.bash: improved output of loaded and available overlays 2021-12-16 18:57:23 +01:00
gsell 20f01d1589 libmodules.bash: get_overlay_info() moved to libpmodules.bash 2021-12-16 18:55:59 +01:00
gsell 22672b9a95 modulecmd: bugfix in getting available modules 2021-12-16 18:55:05 +01:00
gsell 8c9e20ef71 modulecmd: normalize paths by replacing multiple slashes with one
A trailing slash is also removed.
2021-12-16 18:53:40 +01:00
gsell 7983a03221 modulecmd: bugfix in unloading overlay 2021-12-13 09:36:47 +01:00
gsell 2b3696f070 modulecmd: bugfix in get_overlay_info() 2021-12-13 09:36:06 +01:00
gsell dce6d0058f modulecmd: made get_module_prefix() global 2021-12-13 09:35:15 +01:00
gsell 225dd774ef modulecmd: save overlay type and prefix in OverlayDict 2021-12-10 14:13:47 +01:00
gsell e86b2fc7cb modulecmd: return overlay root as prefix if not set 2021-12-10 14:09:44 +01:00
gsell 7b2d0fcd58 modulecmd: use function get_module_prefix() in subcommand_load() 2021-12-10 14:05:06 +01:00
gsell 8cde81ff39 moduecmd: fixes and review of the functions use() and unuse()
- Overlay can be loaded by name and directory.
- The 'overlay' keyword has been removed
- fixes
2021-12-09 18:06:44 +01:00
gsell 62e7cd2e0a modulecmd: simplify code in removing replacing overlays 2021-12-09 18:04:51 +01:00
gsell 8237e61ab2 modulecmd: restrict removing overlays to top on stack 2021-12-09 18:02:40 +01:00
gsell 3d4df78def modulecmd: use_group() fix bug with replacing overlays 2021-12-09 18:00:53 +01:00
gsell 2b16e82bf8 modulecmd: use_overlay(): missing 'fi' added 2021-12-09 17:59:46 +01:00
gsell ec147e78be modulecmd: exit with err mesg if (un)use_group() is called for
hierarchical group
2021-12-09 17:56:34 +01:00
gsell a08078b1c1 modulecmd: bugfix in printing overlay info
replacing overlay weren't handled correct
2021-12-09 17:54:23 +01:00
gsell 4bc94c519c modulecmd: use_overlay() improve code for overlays of type replacing 2021-12-09 17:52:09 +01:00
gsell 363b6d4353 modulecmd: bugfix in use_overlay(), typo in variable name 2021-12-09 17:49:58 +01:00
gsell f0f6e6bd0a modulecmd: simpler test whether a overlay can be loaded or unloaded 2021-12-09 17:47:16 +01:00
gsell 941fa376a9 modulecmd: addind modifying some comments 2021-12-09 17:26:31 +01:00
gsell 9710e506bd modulecmd: loading and unloading overlays reviewed 2021-12-09 00:15:52 +01:00
gsell 21e188d271 modulecmd: load/unload overlays by name (without overlay=) 2021-12-07 18:25:08 +01:00
gsell 22e5c682ac modulecmd: loading and unloading overlays by name 2021-12-07 17:40:54 +01:00
gsell 1e5102d238 modulecmd: bugfix in listing available modules
There was a bug in hidding overlays. In this type of overlay a module
hides all modules with the same name in overlays loaded before. This
didn't work if the module was unstable or deprecated.
2021-12-07 13:31:15 +01:00
gsell de01903242 modulecmd: missing definition of Dir2OverlayMap fixed 2021-12-07 13:30:21 +01:00
gsell 3638af38a0 Merge branch 'master' into 32-overlay-implementation 2021-12-06 15:04:46 +01:00
gsell 68357e0167 modulecmd: do not set PATH 2021-12-06 15:02:46 +01:00
gsell 804027426d modulecmd: adapt/use functions in libpmodules.bash 2021-11-16 18:41:28 +01:00
gsell e0841ff7e8 Merge branch 'master' into 32-overlay-implementation
Conflicts:
	Pmodules/modulecmd.bash.in
2021-11-15 10:13:38 +01:00
gsell 0a4d68d015 modulecmd: handling od option --all-release-stages fixed 2021-11-11 19:32:00 +01:00
gsell 99d979677b modulecmd.bash: case statement added by accident removed 2021-11-10 18:04:05 +01:00
gsell 5815bc5201 modulecmd: shell glob pattern search implemented 2021-11-08 14:43:46 +01:00
gsell 5f81fe32e9 modulecmd: bugfix in saving state to PMODULES_ENV 2021-11-08 14:40:35 +01:00
gsell a7678bad10 Merge branch '139-review-fix-argument-handling-in-modulecmd' into 'master'
Resolve "review/fix argument handling in modulecmd"

Closes #139

See merge request Pmodules/src!109
2021-11-08 13:33:14 +00:00
gsell 1204517a99 modulecmd: cmd-line arguments and handling reviewed 2021-11-08 14:27:12 +01:00
gsell d1a66d5e6f libpmodules.bash reviewed
- cleanup code in lib
- function we need in modmanage moved to lib
- some cleanup in modulecmd
2021-11-08 14:05:05 +01:00
gsell a67b3cdf5f better solution to define used commands implemented 2021-11-08 13:44:54 +01:00
gsell ef5dd9f761 modulecmd: fixes in option and argument parsing 2021-10-29 13:54:22 +02:00
gsell 3d326a527a modulecmd: sort output of sub-command avail numerically 2021-10-29 12:05:41 +02:00
gsell 6d6609126f fixes in module search sub-command
- error fixed in printing the modulefile
- sanity checks added if --src is specified


(cherry picked from commit c22422aca9)
2021-10-28 17:12:58 +00:00
gsell 50c9b6d692 modulecmd: fix output of module avail
- for directories outside the hierarchy the header did not include the
  directory name.
2021-09-17 15:32:56 +02:00
gsell ce897c1f1d Merge branch 'master' into 32-overlay-implementation 2021-08-13 10:22:27 +02:00
gsell e3d8ee9780 modulecmd: bugfix in removing tmp file in _exit 2021-08-12 18:27:01 +02:00
gsell 02d1939c81 modulecmd: module sub-command --help bugs fixed 2021-08-12 18:14:37 +02:00
gsell 3ca2ddc69e Merge branch 'master' into 32-overlay-implementation 2021-06-09 10:08:13 +02:00
gsell d4132018d1 modulecmd: do not source Pmodules.conf if PMODULES_ENV exist
- if PMODULES_ENV is set but DefaultGroups, DefaultReleaseStages or
  ReleaseStages is not set in PMODULES_ENV, the the default defined in
  modulecmd is used
2021-06-09 10:01:47 +02:00
gsell 4ef135c6ab modulecmd: soure Pmodules.conf only if exist and readable 2021-06-09 10:01:13 +02:00