From c2cf7a761e00ea6b66983ec2cca0addf9764714c Mon Sep 17 00:00:00 2001 From: hugomeiland Date: Sat, 25 Apr 2026 16:32:24 +0200 Subject: [PATCH 1/3] remove set -e to have shell survive typo --- src/eessi/cli/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eessi/cli/shell.py b/src/eessi/cli/shell.py index 82be213..6d193a4 100644 --- a/src/eessi/cli/shell.py +++ b/src/eessi/cli/shell.py @@ -47,7 +47,7 @@ def shell( init_file = tempfile.mkstemp()[1] with open(init_file, 'w') as fp: - fp.write(f"set -e; source /cvmfs/software.eessi.io/versions/{eessi_version}/init/bash") + fp.write(f"source /cvmfs/software.eessi.io/versions/{eessi_version}/init/bash") res = subprocess.run(['/bin/bash', '--init-file', init_file, '-i']) if res.returncode != 0: From 5da587e75c7c05431993435ea34a5eb181d57464 Mon Sep 17 00:00:00 2001 From: hugomeiland Date: Sat, 25 Apr 2026 16:51:59 +0200 Subject: [PATCH 2/3] add -v as shorthand for eessi_version to shell --- src/eessi/cli/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eessi/cli/shell.py b/src/eessi/cli/shell.py index 6d193a4..45ee1ba 100644 --- a/src/eessi/cli/shell.py +++ b/src/eessi/cli/shell.py @@ -36,6 +36,8 @@ def shell( is_eager=True, ), eessi_version: Annotated[str, typer.Option( + "-v", + "--eessi_version", help="EESSI version" )] = '', ): From 1f305ba4f7578141f54ce238c09a61b458183545 Mon Sep 17 00:00:00 2001 From: hugomeiland Date: Sat, 25 Apr 2026 17:58:37 +0200 Subject: [PATCH 3/3] update shorthand for eessi-version to -e and moved underscore to dash --- src/eessi/cli/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eessi/cli/shell.py b/src/eessi/cli/shell.py index 45ee1ba..a0661d8 100644 --- a/src/eessi/cli/shell.py +++ b/src/eessi/cli/shell.py @@ -36,8 +36,8 @@ def shell( is_eager=True, ), eessi_version: Annotated[str, typer.Option( - "-v", - "--eessi_version", + "-e", + "--eessi-version", help="EESSI version" )] = '', ):