mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2026-02-02 15:45:11 +01:00
Add environment output option (#152)
Add --env option for environment output
This commit is contained in:
parent
b337765114
commit
140ac2e79b
3 changed files with 47 additions and 4 deletions
17
README.md
17
README.md
|
|
@ -538,7 +538,7 @@ ERROR - No patterns matched for file 'src/mymodule/utils.py'
|
|||
$ bumpver --help
|
||||
Usage: bumpver [OPTIONS] COMMAND [ARGS]...
|
||||
|
||||
Automatically update CalVer version strings in plaintext files.
|
||||
Automatically update version strings in plaintext files.
|
||||
|
||||
Options:
|
||||
--version Show the version and exit.
|
||||
|
|
@ -591,6 +591,21 @@ Options:
|
|||
|
||||
<!-- END bumpver update --help -->
|
||||
|
||||
To help with shell script automation, you can use `bumpver show --env`.
|
||||
|
||||
```shell
|
||||
$ bumpver show -n --env
|
||||
YEAR_Y=2020
|
||||
YEAR_G=
|
||||
...
|
||||
TAG=final
|
||||
...
|
||||
|
||||
$ eval $(bumpver show -n --env)
|
||||
$ echo $TAG
|
||||
final
|
||||
```
|
||||
|
||||
|
||||
### Part Overview
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue