version switch doesn't work
navidcity opened this issue · comments
--version
switch is broken in the latest update.
@navidcity was this question about a) getting the tool's version or b) the field called version?
The first can be solved with pyVersioning version
.
See also: https://paebbels.github.io/pyVersioning/CommandLineInterface.html#pyversioning-version
================================================================================
Version file generator.
================================================================================
Author: Patrick Lehmann (Paebbels@gmail.com)
Copyright: 2020-2024, Patrick Lehmann
License: Apache License, Version 2.0
Version: 0.14.2
The second can be solved using the new field
command:
VERSION="$(pyVersioning field 'version')"
echo "# ${VERSION}"
# v0.0.0
This will be available in v0.15.0, see #42.