Giter Site home page Giter Site logo

gosemver's Introduction

goSemver

This is a simple Go application that helps manage semantic versioning for your projects.

Installation

To install this application, you need to have Go installed on your machine. Once you have Go installed, you can clone this repository and build the application.

go install github.com/ptdave20/goSemver

Usage

You can run the application with different command line arguments to increment the major, minor, or patch version. The application will print the new version to stdout.

goSemver break    # Increment the major version and print it
goSemver feature  # Increment the minor version and print it
goSemver          # Increment the patch version and print it

Using the command inline with git tags can be useful for managing versioning in your projects.

git tag -a $(goSemver break) -m "Breaking change"    # Create a new git tag with the incremented major version
git tag -a $(goSemver feature) -m "New feature"      # Create a new git tag with the incremented minor version
git tag -a $(goSemver) -m "Bug fix"                  # Create a new git tag with the incremented patch version

Setting up the PATH

The go install command places the compiled executable in the $GOPATH/bin directory. To run the program from any location on your system, you need to add $GOPATH/bin to your system's PATH.

On Linux or Mac

If you haven't done this already, you can add the following line to your shell profile file (like .bashrc, .bash_profile, or .zshrc):

export PATH=$PATH:$(go env GOPATH)/bin

On Windows

  1. Right-click on Computer and click on Properties.
  2. Click on Advanced system settings.
  3. Click on Environment Variables.
  4. Under System Variables, find and select the Path variable.
  5. Click on Edit.
  6. In the Edit Environment Variable window, click on New.
  7. Paste the path to your Go binary folder, which is usually C:\Go\bin if you have used the default installation settings.
  8. Click on OK in all windows to apply the changes.

gosemver's People

Contributors

ptdave20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.