Closed elfgirl closed 1 year ago
export $(bumpver show -n --env | xargs)
if [[ -z "$MAJOR" ]]; then export MAJOR=0; fi
if [[ -z "$MINOR" ]]; then export MINOR=0; fi
if [[ -z "$PATCH" ]]; then export PATCH=0; fi
Is a workaround for those needing to slice and dice the version numbers themselves,
Nice catch. Thanks.
bumpver, version 2023.1127
config is as follows
[bumpver] current_version = "1.0.11+20231012.6336" version_pattern = "MAJOR.MINOR.PATCH[+YYYY0M0D.BUILD]"
command shows bumpver show -n --env ... MAJOR=1 MINOR= PATCH=11 ...
0 has a python truthiness of false, so a blank is reported src/bumpver/cli.py line 448 click.echo(f"{key.upper()}={val if val else ''}")