Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/songmu/gitsemvers


https://github.com/songmu/gitsemvers

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

gitsemvers
=======

[![Test Status](https://github.com/Songmu/gitsemvers/workflows/test/badge.svg?branch=main)][actions]
[![codecov.io](https://codecov.io/github/Songmu/gitsemvers/coverage.svg?branch=main)][codecov]
[![MIT License](https://img.shields.io/github/license/Songmu/gitsemvers)][license]
[![PkgGoDev](https://pkg.go.dev/badge/github.com/Songmu/gitsemvers)][PkgGoDev]

[actions]: https://github.com/Songmu/gitsemvers/actions?workflow=test
[codecov]: https://codecov.io/github/Songmu/gitsemvers?branch=main
[license]: https://github.com/Songmu/gitsemvers/blob/main/LICENSE
[PkgGoDev]: https://pkg.go.dev/github.com/Songmu/gitsemvers

## Description

Retrieve semvers from git tags

## Synopsis

```go
sv := &gitsemvers.Semvers{RepoPath: "path/to/repo"}
semvers := sv.VersionStrings()
```

## Command Line Tool

% go get github.com/Songmu/gitsemvers/cmd/git-semvers
% git-semvers
v0.9.0
...

## Author

[Songmu](https://github.com/Songmu)