Git Product home page Git Product logo

gitversion's Introduction

gitversion

MIT licensed

Basic Semantic and Sequential Versioning for Git projects

The download size of the docker image is only around 9MB and the actual size of the docker image is less than 19MB.

Usage

Docker

Note: change DIR to the Git project dir.

docker run -v DIR:/repo omidmr/gitversion gitversion --help

Manual

cargo install gitversion
gitversion --help

License

This project is licensed under the MIT license.

gitversion's People

Contributors

omid avatar tjtelan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

gitversion's Issues

Support alpha, beta and rc

After deployment of this ticket, gitversion command should accept the following attributes:

  • -alpha-keyword keyword
  • -beta-keyword keyword
  • -rc-keyword keyword

For example:
gitversion -alpha-keyword alpha -beta-keyword b -rc-keyword rc

And type can have the following values:

  • alpha
  • beta
  • rc

The changes will be like the following matrix:

Old Version Type New Version
v1.2.3 alpha v1.2.4-alpha
v1.2.4-alpha alpha v1.2.4-alpha.1
v1.2.4-alpha.1 alpha v1.2.4-alpha.2
v1.2.4-alpha beta v1.2.4-beta
v1.2.3 beta v1.2.4-beta
v1.2.3 rc v1.2.4-rc

Support sequential versioning

It's the simplest way of versioning an application!
Just count up from 1 to unlimited!

To be able to develop this, we need to implement a new attribute to handle the type of versioning.
We already using the "type" attribute, so it should be something else, like algorithm, format or ...

gitversion -f semver
gitversion -f sequential

Retouch the project

  • Upgrade dependencies
  • Try to make the binary smaller
  • Compile while building docker

Try easy_flag

  • Replace clap with easy_flag and check the binary size

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.