version

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 14 Imported by: 0

README

Version

Welcome to the Tag Generator CLI. This CLI helps you generate and manage version tags for your Git repository.

Features

  • Interactive Module Selection: Choose the module interactively using a beautiful terminal interface powered by bubbletea.
  • Multi-Selection for Release Channels: Select multiple release channels at once in interactive mode using checkbox-style selection.
  • Traditional Text Input: Fallback to traditional text input when needed.
  • Generate Next Version: Automatically generate the next version based on the selected module and release type.
  • Create Git Tag: Create a Git tag for the generated version.
  • Batch Tag Creation: Create tags for multiple release channels simultaneously.

Installation

go install github.com/chandanpasunoori/version@latest

Navigate to the project repository

cd repo

Usage

Use the -i flag to enable interactive mode with a beautiful list selection interface:

version -i

This will show a terminal UI where you can:

  • Navigate through available modules using arrow keys
  • Navigate through available release channels using arrow keys
  • Select multiple release channels using space bar (new feature!)
  • Press Enter to confirm your selection(s)
  • Press 'q' to quit

Multi-Selection for Release Channels: In interactive mode, you can now select multiple release channels at once. Use the space bar to toggle selection of individual release channels, and press Enter to confirm. This allows you to create tags for multiple releases simultaneously (e.g., dev, staging, and prod all at once).

Traditional Mode

Run without the -i flag for traditional text input:

version
Command Line Arguments
  • -m string: Specify module name directly
  • -r string: Specify release channel directly
  • -i: Enable interactive mode with bubbletea list selection

Examples:

# Interactive mode
version -i

# Interactive mode with multi-selection (select multiple release channels)
version -i

# Direct specification (single release)
version -m myapp -r production

# Direct specification (multiple releases)
version -m myapp -r dev,staging,prod

# Mixed mode (interactive for missing values)
version -i -m myapp
Git Tag Format
<moduleName>/<releaseType>/v<major.minor.patch> = app/production/v0.1.1
License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL