Xavier Delaruelle
1e0a51ec03
init: add describe subcmd to completion scripts
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2025-05-09 14:50:24 +02:00
Xavier Delaruelle
419496277d
init: add disable subcmd to completion scripts
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2025-05-09 14:47:37 +02:00
Xavier Delaruelle
19c53fc4f0
init: add update subcmd to completion scripts
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2025-05-09 13:49:32 +02:00
Xavier Delaruelle
eb91bf0915
init: add spider_indepth config to completion script
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2024-12-27 10:12:00 +01:00
Xavier Delaruelle
00ffadfa17
init: add --dumpname option to completion scripts
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2024-11-23 17:06:30 -05:00
Xavier Delaruelle
5fad6c124b
init: add spider subcmd to completion scripts
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2024-11-16 21:44:55 +01:00
Xavier Delaruelle
5b7c376f49
init: add spider_{terse_,}output configs to completion script
...
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr >
2024-11-16 21:27:44 +01:00
Xavier Delaruelle
9206a1688a
Rename "contrib" directory into "share"
...
Give a more clear name to the "contrib" directory that contains
architecture and configuration independent data. New directory name is
"share", which correctly matches the destination of these files into the
installation directory.
2024-12-08 10:39:56 +01:00
Xavier Delaruelle
00ecc5206e
init: add conflict_unload config to completion script
2024-10-11 08:29:46 +02:00
Simon Maertens
339b6c07b7
Added explicit reset of quarantied variables in pwsh
2024-09-15 15:02:51 +02:00
Simon Lukas Märtens
b0a20828e4
Added quarantine support for pwsh
...
Add support for the quarantine mechanism with pwsh shell.
Init script init/pwsh.ps1 does not handle quarantine on Windows platform.
2024-09-15 15:02:51 +02:00
Simon Lukas Märtens
64dc854941
Added support for MODULES_REDIRECT_OUTPUT on pwsh
2024-09-15 15:02:51 +02:00
Simon Lukas Märtens
e190616027
Rewrote the pwsh envmodule and ml commands
...
- LastExitCode is now always set to 0 or 1, depending on the success of
the command.
- If there is an error we throw an exception in envmodule and ml.
- If the subcommand is a query, e.g. `is-avail`, we return a boolean
value.
2024-09-15 15:02:51 +02:00
Simon Maertens
0a5324932f
Add support for pwsh shell
...
The pwsh initialization works similar to the cmd initialization.
Autoinit will not work on Windows due to the hard-coded paths in
modulecmd.tcl. On other platforms the autoinit should work for pwsh.
2024-09-15 15:02:51 +02:00
Xavier Delaruelle
256f08bec8
init: add logged_events config to completion script
2024-06-13 04:55:13 +02:00
Xavier Delaruelle
45270de214
init: add logger config to completion script
2024-06-13 04:55:13 +02:00
Xavier Delaruelle
c8ca5eb91c
init: add hide_auto_loaded config to completion script
2024-06-12 06:43:01 +02:00
Xavier Delaruelle
9a9a3ba7ed
init: fix mod-to-sh option completion on bash/tcsh
2024-04-18 08:01:25 +02:00
Xavier Delaruelle
b4297c7c96
init: complete long option on ml cmd on tcsh shell
2024-04-17 21:39:50 +02:00
Laurent Besson
439acc5bfd
init: add ml command completion for tcsh shell
...
Add simple completion (loaded modules, avail modules) to "ml" command
for tcsh shell.
Fixes #416
2024-04-17 21:39:50 +02:00
Xavier Delaruelle
00a177e7a6
init: fix MODULESHOME setup in cmd.cmd
...
Update cmd shell initialization script to correctly define MODULESHOME
when installation pathname contains dot character.
Fixes #525
2024-04-17 16:12:28 +02:00
Xavier Delaruelle
9ae9c4014f
init: complete existing files on Tcsh completion
...
Fixes #523
2024-02-15 07:56:48 +01:00
Xavier Delaruelle
ac3dc0714a
init: rename error_on_multi_load into abort_on_error
2023-11-27 20:19:05 +01:00
Xavier Delaruelle
8e50cce8b7
init: add source_cache config to completion script
2023-11-27 07:26:19 +01:00
Xavier Delaruelle
1b5df760d1
Use length test result as boolean value
...
Simplify code to use result from "string length" and "llength" commands
directly as boolean value (0 means false, other numbers mean true).
2023-10-01 10:36:49 +02:00
Xavier Delaruelle
805752e943
init: add error_on_multi_load config to completion script
2023-08-17 20:59:35 +02:00
Xavier Delaruelle
82ad9e995d
init: add unload_match_order to completion script
2023-07-16 09:03:13 +02:00
Xavier Delaruelle
a39a1c1cef
init: add sticky_purge to completion script
2023-07-08 15:12:36 +02:00
Xavier Delaruelle
2dfb6196f2
init: fix completion to report syms and aliases
...
Fix completion scripts (bash, tcsh, fish and zsh) to report symbolic
versions and aliases among available modules.
Fixes #500 .
2023-06-27 08:21:31 +02:00
Xavier Delaruelle
8438ea127d
lint: fix SC3045 shellcheck warning
2023-05-19 21:36:11 +02:00
Xavier Delaruelle
818da9a4c4
lint: fix SC2034 shellcheck warning
2023-05-18 20:28:10 +02:00
Xavier Delaruelle
eb95d58356
lint: fix SC2091 shellcheck warning
2023-05-18 18:46:06 +02:00
Xavier Delaruelle
0d2f8be08c
init: add ignore_user_rc/--ignore-user-rc to comp script
2023-05-07 10:21:10 +02:00
Xavier Delaruelle
5e89196bd1
init: fix nospace activation in bash completion script
...
Fix bash shell completion script to be able to complete full name of
available modules.
Fixes #490 .
2023-04-14 06:08:41 +02:00
Xavier Delaruelle
7093c8579e
init: add cache_expiry_secs config to completion script
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
8bf6dc2a6c
init: add cache_buffer_bytes config to completion script
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
c48247d9c8
init: add ignore_cache/--ignore-cache to comp script
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
3b7568043a
init: add cacheclear subcmd to completion scripts
2022-11-28 03:58:56 +01:00
Xavier Delaruelle
4ba52095dc
init: add cachebuild subcmd to completion scripts
2022-11-12 13:26:30 +01:00
Xavier Delaruelle
39923ad178
Revert "init: setup zsh FPATH through autoinit command"
...
This reverts commit 59ac24e243 .
FPATH variable cannot be handled within autoinit process as this is not
an environment variable. Thus when modulecmd.tcl is executed, it does
not know the current value of FPATH. So if it sets FPATH during
autoinit, previous value of this variable is lost. As a result FPATH
must stay defined in initialization script.
2022-10-16 14:06:11 +02:00
Xavier Delaruelle
c3d06a65e0
init: update completion with stashlist output
...
Update stashpop, stashrm and stashshow completion definition to use
stashlist output.
2022-10-05 07:59:34 +02:00
Xavier Delaruelle
d20c6228a8
init: add stashlist subcmd to completion scripts
2022-10-02 14:26:28 +02:00
Xavier Delaruelle
0e756ba56e
init: add stashclear subcmd to completion scripts
2022-09-29 07:02:38 +02:00
Xavier Delaruelle
8af7d4568f
init: add stashshow subcmd to completion scripts
2022-09-29 07:02:38 +02:00
Xavier Delaruelle
3463d123d0
init: add stashrm subcmd to completion scripts
2022-09-28 07:21:30 +02:00
Xavier Delaruelle
c7ff0fce5f
init: add stashpop subcmd to completion scripts
2022-09-28 07:20:54 +02:00
Xavier Delaruelle
705b953a43
init: add stash subcmd to completion scripts
2022-09-20 06:19:33 +02:00
Xavier Delaruelle
9a53011961
init: only source sh or bash init if BASH var is set
...
Update profile script for sh-like shells to only source sh or bash
initialization script when BASH environment variable is found set.
Fixes #473
2022-09-15 19:44:21 +02:00
Lukáš Zaoral
0877b01865
lint(ShellCheck): fix SC2046 warning
...
According to ShellCheck's documentation:
When command expansions are unquoted, word splitting and globbing will occur.
This often manifests itself by breaking when filenames contain spaces.
Related: https://www.shellcheck.net/wiki/SC2046
Related: #470
2022-09-02 09:52:05 +02:00
Lukáš Zaoral
d018f7a9e6
lint(ShellCheck): fix SC2086 info diagnostic
...
Some variables, that were unquoted intentionally were converted to arrays.
According to ShellCheck's documentation:
Quoting variables prevents word splitting and glob expansion, and prevents
the script from breaking when input contains spaces, line feeds, glob
characters and such.
Related: https://www.shellcheck.net/wiki/SC2086
Related: #470
2022-09-02 09:52:05 +02:00