From 24d7c2caa455ed6e372efbab0e01457fe11f6468 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 22 Nov 2019 23:02:19 +0100 Subject: [PATCH] create default readme --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2526311..ae185ec 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,39 @@ # cliverage -Command-line tool to highlight code coverage in the terminal. \ No newline at end of file +```yaml +go_package: git.xdrm.io/go/cliverage +author: xdrm-brackets +``` + +Command-line tool to highlight code coverage in the terminal. + +### Requirements + +You need a recent system with golang installed. +> It has not been tested under go 1.12.4 + +### Installation + +You need to fetch and install the package with : +```bash +go get git.xdrm.io/go/cliverage +``` + +It should create the executable `cliverage` into the folder `$GOPATH/bin` (or `$GOBIN` if set). + +### Usage + +In order for the `cliverage` tool to run successfully, you need : +- a path to your code's repository +- the coverage file path (_see this [documentation](https://godoc.org/golang.org/x/tools/cover)_) + + +Command usage : +```bash +cliverage +``` + +Arguments : +- `` - path to where your code lives +- `coverage-file` - path to the coverage file +- `` - path to a single file. You can use go package wildcards : `./...` prints every file, `./a/b/...` prints every file located into `./a/b`. \ No newline at end of file