project_version/
lib.rs

1//! # project-version
2//!
3//! [![CI](https://github.com/osteele/project-version/actions/workflows/ci.yml/badge.svg)](https://github.com/osteele/project-version/actions/workflows/ci.yml)
4//! [![Docs](https://github.com/osteele/project-version/actions/workflows/docs.yml/badge.svg)](https://osteele.github.io/project-version/)
5//! [![Crate](https://img.shields.io/crates/v/project-version.svg)](https://crates.io/crates/project-version)
6//! [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7//!
8//! A cross-language project version bumper CLI that supports multiple project types.
9//!
10//! ## Supported Project Types
11//!
12//! - Node.js (package.json)
13//! - Python (pyproject.toml)
14//! - Rust (Cargo.toml)
15//! - Go (version.go files)
16//! - Ruby (Gemfile, gemspec, version.rb)
17//!
18//! ## Usage
19//!
20//! ```bash
21//! # Show current version and available commands
22//! project-version
23//!
24//! # Bump patch version in current directory
25//! project-version bump
26//!
27//! # Bump minor version
28//! project-version bump minor
29//!
30//! # Bump major version with verbose output
31//! project-version bump major --verbose
32//!
33//! # Set a specific version (with or without v prefix)
34//! project-version set 2.0.0
35//! project-version set v2.0.0
36//!
37//! # Set a lower version (requires --force)
38//! project-version set 1.0.0 --force
39//!
40//! # Dry run to see what would happen
41//! project-version bump --dry-run
42//! project-version set 2.0.0 --dry-run
43//!
44//! # Bump version without creating a git commit
45//! project-version bump --no-commit
46//!
47//! # Bump version in a specific directory
48//! project-version /path/to/project bump
49//! ```
50//!
51//! ## Options
52//!
53//! - `--dry-run` - Show what would happen without making changes
54//! - `--verbose` - Show more detailed output
55//! - `--no-commit` - Don't create a git commit
56//! - `--force` - Force setting version even if it's lower than current version
57
58pub mod changelog;
59pub mod git;
60pub mod project;