https://github.com/foliant-docs/foliantcontrib.bump
Version bumper for Foliant projects.
https://github.com/foliant-docs/foliantcontrib.bump
Last synced: 5 months ago
JSON representation
Version bumper for Foliant projects.
- Host: GitHub
- URL: https://github.com/foliant-docs/foliantcontrib.bump
- Owner: foliant-docs
- License: mit
- Created: 2018-07-28T18:54:13.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-07-31T18:33:41.000Z (almost 8 years ago)
- Last Synced: 2025-09-25T11:46:00.057Z (9 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Version Bumper for Foliant Projects
This CLI extension adds `bump` command that lets you bump Foliant project [semantic version](https://semver.org/) without editing the config manually.
## Installation
```shell
$ pip install foliantcontrib.bump
```
## Usage
Bump version from "1.0.0" to "1.0.1":
```shell
$ foliant bump
Version bumped from 1.0.0 to 1.0.1.
```
Bump major version:
```shell
$ foliant bump -v major
Version bumped from 1.0.1 to 2.0.0.
```
To see all available options, run `foliant bump --help`:
```shell
$ 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").
```