From dcde9d39b4cbbd8a6f741aff52f236bed7aa249a Mon Sep 17 00:00:00 2001 From: kopardev Date: Wed, 14 Feb 2024 18:17:04 -0500 Subject: [PATCH 1/2] refactor: spacesavers2_e2e now has a -v or --version argument --- spacesavers2_e2e | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spacesavers2_e2e b/spacesavers2_e2e index 3b18625..69bf5e8 100755 --- a/spacesavers2_e2e +++ b/spacesavers2_e2e @@ -6,6 +6,15 @@ set -e -o pipefail SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +# printing version +if [ $# -eq 1 ];then +case $1 in + -v|--version) + spacesavers2_catalog --version + exit 0 +esac +fi + # ncpus=`nproc` ARGPARSE_DESCRIPTION="End-to-end run of spacesavers2" @@ -17,6 +26,7 @@ parser.add_argument('-d','--maxdepth',required=False, help='maxdepth for mimeo ( parser.add_argument('-l','--limit',required=False, help='limit for running spacesavers_grubbers (default 5)', default=5) parser.add_argument('-q','--quota',required=False, help='total size of the volume (default = 200 for /data/CCBR)', default=200) parser.add_argument('-o','--outfolder',required=True, help='Folder where all spacesavers_e2e output files will be saved') +parser.add_argument('-v','--version',required=False, action='store_true', help='print version') EOF # assuming that python 3.11 is available with xxhash module From a101471368737abdca52d7d1c12b18a36eb41856 Mon Sep 17 00:00:00 2001 From: kopardev Date: Wed, 14 Feb 2024 18:18:52 -0500 Subject: [PATCH 2/2] chore:updates to VERSION and CHANGELOG --- CHANGELOG.md | 6 ++++++ src/VERSION | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 703f69b..67764dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ### Bug fixes +## spacesavers2 0.11.2 + +### New features + +- `spacesavers2_e2e` has a new `-v` or `--version` argument to print version of spacesavers2 being used + ## spacesavers2 0.11.1 ### New features diff --git a/src/VERSION b/src/VERSION index af88ba8..bc859cb 100644 --- a/src/VERSION +++ b/src/VERSION @@ -1 +1 @@ -0.11.1 +0.11.2