Commit Graph

592 Commits

Author SHA1 Message Date
gsell a67b3cdf5f better solution to define used commands implemented 2021-11-08 13:44:54 +01:00
gsell 63274d1143 Merge branch '140-std-split_fname-remove-leading-slash' into 'master'
Resolve "std:split_fname(): remove leading slash"

Closes #140

See merge request Pmodules/src!110
2021-11-08 11:27:57 +00:00
gsell 6d53069bed std::split_abs_path() renamed to std::split_abspath() 2021-11-08 12:25:25 +01:00
gsell 8112e8b6d4 std::split_fname(): reviewed and renamed to std::split_abs_path() 2021-11-08 12:20:17 +01:00
gsell bdc9ddf8b5 std:split_fname(): changed arguments and leading slash handling
- a leading slash is now removed
- the filename is now passed as second argument, the number of
  parts is returned in an optional third argument
2021-11-08 11:59:21 +01:00
gsell f75f00dbfb Merge branch '138-invalid-options-are-not-handled-properly' into 'master'
Resolve "issues in parsing options and arguments"

Closes #138

See merge request Pmodules/src!108
2021-10-29 11:55:05 +00:00
gsell ef5dd9f761 modulecmd: fixes in option and argument parsing 2021-10-29 13:54:22 +02:00
gsell 0ba602dbbd Merge branch '137-sort-modules-numerically-in-sub-command-avail' into 'master'
Resolve "sort modules numerically in sub-command avail"

Closes #137

See merge request Pmodules/src!107
2021-10-29 10:08:07 +00:00
gsell 3d326a527a modulecmd: sort output of sub-command avail numerically 2021-10-29 12:05:41 +02:00
gsell f7f589471e Merge branch 'cherry-pick-c22422ac' into 'master'
fixes in module search sub-command

See merge request Pmodules/src!106
2021-10-28 17:13:30 +00: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 a4215874a3 Merge branch '135-fix-output-of-group-name-in-avail-sub-commanf' into 'master'
Resolve "fix output of group name in avail sub-commanf"

Closes #135

See merge request Pmodules/src!104
2021-09-17 13:34:47 +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 06406e463d Merge branch '133-modulecmd-fix-exit-function' into 'master'
Resolve "modulecmd: fix exit function"

Closes #133

See merge request Pmodules/src!102
2021-08-12 16:28:24 +00:00
gsell e3d8ee9780 modulecmd: bugfix in removing tmp file in _exit 2021-08-12 18:27:01 +02:00
gsell 979e4f5d38 Merge branch '132-module-sub-cmd-help-bugs' into 'master'
Resolve "module sub-cmd --help bugs"

Closes #132

See merge request Pmodules/src!101
2021-08-12 16:17:18 +00:00
gsell 02d1939c81 modulecmd: module sub-command --help bugs fixed 2021-08-12 18:14:37 +02:00
gsell 6ceb76e8fb bash_completion: sub-commands dependencies and sync removed 2021-08-12 18:12:13 +02:00
gsell 457f3d5430 Merge branch '131-libstd-bash-fix-issue-with-current-centos-in-std-get_os_release' into 'master'
Resolve "libstd.bash: fix issue with current CentOS in std::get_os_release()"

Closes #131

See merge request Pmodules/src!100
2021-07-20 15:55:29 +02:00
gsell 4f625ed86b libstd.bash: fix in std.get_os_release_linux() for current CentOS 2021-07-20 15:54:21 +02:00
gsell 54817c70f5 Merge branch '130-libpbuild-bash-bugs-in-functions-to-compare-versions' into 'master'
Resolve "libpbuild.bash: bugs in functions to compare versions"

Closes #130

See merge request Pmodules/src!99
2021-07-20 15:46:23 +02:00
gsell 2d12850de0 libpbuild.bash: bugfix in version compare functions 2021-07-20 15:44:46 +02:00
gsell 2f537795cc Merge branch '129-modulecmd-use-some-defaults-if-pmodules-conf-does-not-exist' into 'master'
Resolve "modulecmd: use some defaults if Pmodules.conf does not exist"

Closes #129

See merge request Pmodules/src!98
2021-06-09 10:04:59 +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
gsell 12a5fcd872 modulecmd: fix in 'unuse' help text 2021-06-09 10:00:34 +02:00
gsell 49aa32f4df modulecmd: set defaults for DefaultGroups, etc
- defaults are set for DefaultsGroups, DefaultReleaseStages and ReleaseStages
2021-06-09 09:58:47 +02:00
gsell 84a04aaebe Merge branch '126-sort-versions-numerically' into 'master'
Resolve "Sort versions numerically"

See merge request Pmodules/src!97
2021-06-07 15:34:35 +02:00
gsell 5edcec4544 modulecmd: sort module names version aware
- call sort with option --version-sort in getting available modules
  and search cmd
2021-06-07 15:27:08 +02:00
gsell 8da5f14ca9 Merge branch '128-terse-output-in-sub-cmd-avail-is-broken' into 'master'
Resolve "terse output in sub-cmd avail is broken"

Closes #128

See merge request Pmodules/src!96
2021-06-07 14:34:24 +02:00
gsell 129d6ff540 bugfix in terse output of sub-cmd avail 2021-06-07 14:14:57 +02:00
gsell f0c51a15ea Merge branch '127-use-term-release-stage-in-code-options-and-help' into 'master'
Resolve "use term release stage in code, options and help"

Closes #127

See merge request Pmodules/src!95
2021-06-02 18:25:59 +02:00
gsell b3a6adf9f8 modulecmd: handle changes in PMODULES_ENV for old versions 2021-06-02 18:23:04 +02:00
gsell d908a4041c modulecmd: bugfix in listing unused release stages 2021-06-02 18:21:53 +02:00
gsell d592519252 use term release stage instead of release
- refactor variables and function names
- internal: refactor UseFlags -> UsedFlags and change type to normal array
2021-06-02 13:56:28 +02:00
gsell 954ba40054 Merge branch '125-rename-variable-defaultusedreleasestages-to-defaultreleasestages' into 'master'
Resolve "rename variable DefaultUsedReleaseStages to DefaultReleaseStages"

Closes #125

See merge request Pmodules/src!94
2021-05-26 17:48:27 +02:00
gsell b40297d1a4 variable DefaultUsedReleaseStages renamed to DefaultReleaseStages 2021-05-26 17:47:26 +02:00
gsell d453e173b0 Merge branch '124-review-bash-profile-and-init-file' into 'master'
Resolve "review bash profile and init file"

Closes #124

See merge request Pmodules/src!93
2021-05-26 17:40:17 +02:00
gsell fd6708352c tcllib added 2021-05-26 16:50:41 +02:00
gsell dfb133cae7 config/Pmodules.conf added 2021-05-26 16:50:10 +02:00
gsell 85c89df9f5 initialization of Pmodules environment reviewed
- introduce new configuration file ${PMODULES_ROOT}/config/Pmodules.conf
- move as much as possible from profile.bash and init/bash to
  modulecmd
- expose less environment variables to the user
2021-05-26 16:43:38 +02:00
gsell 9b33e1723a build: tcllib added 2021-05-26 16:42:50 +02:00
gsell 67815236a7 Merge branch '123-refactor-pmodules_default_groups' into 'master'
Resolve "Refactor PMODULES_DEFAULT_GROUPS"

Closes #123

See merge request Pmodules/src!92
2021-05-25 15:42:41 +02:00
gsell 25129b57f7 refactored PMODULES_DEFAULT_GROUPS to DefaultGroups 2021-05-25 15:37:09 +02:00
gsell b08fdca050 Merge branch '122-refactor-pmodule_default_releases' into 'master'
Resolve "refactor PMODULE_DEFAULT_RELEASES"

Closes #122

See merge request Pmodules/src!91
2021-05-25 14:49:33 +02:00
gsell edd3fc4009 refactor variable PMODULES_DEFAULT_RELEASES
- new name is DefaultUsedReleaseStages
2021-05-25 14:35:59 +02:00
gsell 8ba396930a refactor variable PMODULES_DEFINED_RELEASES
- new name is ReleaseStages

- new name is ReleaseStages
2021-05-25 14:34:29 +02:00
gsell 4f6b8c89b5 set version to 1.0.0rc10 2021-05-20 16:40:43 +02:00
gsell d3d02d76c4 Merge branch '120-modulecmd-switch-sub-cmd-need-tmpfile' into 'master'
Resolve "modulecmd: switch sub-cmd need tmpfile"

Closes #120

See merge request Pmodules/src!89
1.0.0rc9
2021-05-11 14:06:30 +02:00
gsell 69bcb98a07 modulecmd: create a tmpdile for sub-cmd switch 2021-05-11 14:05:19 +02:00