Expand description
Version management and the release workflow for the fraisier CLI.
This crate backs fraisier version show / version bump and (the
ship workflow) fraisier ship. The version logic understands
both Rust (Cargo.toml) and Python (pyproject.toml) projects, editing the
file in place with toml_edit so formatting and comments survive a bump.
Structs§
- Ship
Options - How a
shiprun should behave. - Ship
Report - The outcome of a
shiprun (or, withdry_run, the plan it would execute). - Version
Info - A located project version: which file, what kind, and the current value.
Enums§
- Bump
- Which component of a semantic version to increment.
- Project
Kind - Which kind of project a version file belongs to.
- Ship
Error - An error from reading or bumping a project’s version.
Functions§
- bump
- Bump the project version in place, returning
(old, new). Preserves the file’s formatting and comments. - locate
- Locate the project version:
Cargo.tomlif present, elsepyproject.toml. - next_
version - Compute the next version string after applying
leveltocurrent. - ship
- Run the
shipworkflow against the project indir. - show
- Read the current version without modifying anything (
version show).