add test for version

This commit is contained in:
Egor Kovetskiy 2019-04-11 09:50:16 +03:00
parent 9ae125cea1
commit 6399aac4d5
2 changed files with 7 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
"strings"
"github.com/BurntSushi/toml"
"github.com/kovetskiy/godocs"
"github.com/docopt/docopt-go"
"github.com/kovetskiy/lorg"
"github.com/reconquest/colorgful"
"github.com/reconquest/karma-go"
@ -17,6 +17,10 @@ import (
"github.com/zazab/zhash"
)
var (
version = "[standalone build]"
)
const (
usage = `mark - tool for updating Atlassian Confluence pages from markdown.
@ -128,7 +132,7 @@ func initLogger(trace bool) {
}
func main() {
args, err := godocs.Parse(usage, "mark 1.0", godocs.UsePager)
args, err := docopt.Parse(usage, nil, true, version, false)
if err != nil {
panic(err)
}

View File

@ -1 +1,2 @@
tests:ensure :run -v
tests:assert-stdout 'standalone build'