Validate release-version
validate release-version - Validate release version format
Validates that a version string is a valid semantic version.
Checks: - Must be valid semver format: MAJOR.MINOR.PATCH (e.g., 1.2.3) - Must not have 'v' prefix (e.g., v1.2.3 is rejected) - Major, minor, and patch must be non-negative integers - No leading zeros allowed (except for 0 itself)
Notes
Expected Output:
Exit code 0 if valid semver format, exit code 1 if invalid. Error message displayed for invalid versions (v prefix, wrong format, leading zeros). No output on success (silent success).
Examples
validate release-version 1.2.3 # Valid
validate release-version 0.1.0 # Valid
validate release-version v1.2.3 # Invalid: has 'v' prefix
validate release-version 1.2 # Invalid: missing patch
validate release-version 01.2.3 # Invalid: leading zero
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.