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