Categorygithub.com/jeorjebot/taggo
modulepackage
1.1.0
Repository: https://github.com/jeorjebot/taggo.git
Documentation: pkg.go.dev

# README

Taggo

GitHub release Go Report Card License: MIT

Easy peasy git tag utility for lazy people who don't want to remember git commands.

taggo gopher

Taggo handle the creation of lightweight tags and push them to the remote repository. Tags are created with the format vX.Y.Z where X is the major version, Y is the minor version and Z is the patch version.

Future versions will allow to add pre-release and handle annotated tags.

Table of Contents

Installation

Go install command

If you have Go installed, you can use the go install command to install the binary.

go install github.com/jeorjebot/taggo

The binary will be installed in $GOPATH/bin or $GOBIN if set. Make sure you have $GOPATH/bin in your path.

From releases

Download the binary for your OS from the releases page. Make sure the binary is executable, then move it to your path.

chmod +x /path/to/taggo
mv /path/to/taggo /usr/local/bin

Usage

  • taggo ==> show last tag
  • taggo init ==> create first tag v0.0.0
  • taggo -p ==> create patch tag. Example: v0.0.1
  • taggo -m ==> create minor tag. Example: v0.1.0
  • taggo -M ==> create major tag. Example: v1.0.0
  • taggo -t ==> create tag specifying version. Example: v1.0.0
  • taggo -d ==> delete last tag

Examples

  • Show last tag
$ taggo
[*] Current tag: v1.0.0
  • Create first tag
$ taggo init
[*] Initializing git repo
[*] Added tag v0.0.0
  • Create patch tag
$ taggo -p
[*] Current tag: v0.0.0
[*] New tag: v0.0.1
[*] Tag pushed successfully
  • Create a specific tag
$ taggo -t v1.0.0
[*] Current tag: v0.0.1
[*] New tag: v1.0.0
[*] Tag pushed successfully
  • Delete last tag
$ taggo -d
[*] Current tag: v0.0.2
[*] Deleting tag v0.0.2
[*] Tag deleted successfully

Git Commands for reference

  • git tag --sort=committerdate | tail -1 ==> last tag
  • git describe --tags --abbrev=0 ==> last tag
  • git tag ==> all tags
  • git tag v1.0.0 ==> create tag
  • git push origin v1.0.0 ==> push tag to remote
  • git tag --delete v1.0.0 ==> delete tag local
  • git push --delete origin v1.0.0 ==> delete tag remote

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

Thanks

# Packages

No description provided by the author

# Structs

Options holds the CLI args.