版本保险杠为植物项目。
foliantcontrib.bump的Python项目详细描述
用于叶面项目的版本保险杠
这个cli扩展添加了bump
命令,该命令允许您在不手动编辑配置的情况下凹凸叶状项目semantic version。
安装
$ pip install foliantcontrib.bump
用法
从“1.0.0”到“1.0.1”的凹凸版本:
$ foliant bump Version bumped from 1.0.0 to 1.0.1.
凹凸主要版本:
$ foliant bump -v major Version bumped from 1.0.1 to 2.0.0.
要查看所有可用选项,请运行foliant bump --help
:
$ foliant bump --help usage: foliant bump [-h][-v VERSION_PART][-p PATH][-c CONFIG] Bump Foliant project version. optional arguments: -h, --help show this help message and exit -v VERSION_PART, --version-part VERSION_PART Part of the version to bump: major, minor, patch, prerelease, or build (default: patch). -p PATH, --path PATH Path to the directory with the config file (default: "."). -c CONFIG, --config CONFIG Name of the config file (default: "foliant.yml").