mirror of
https://github.com/kovetskiy/mark.git
synced 2025-06-06 14:12:39 +08:00
add test for version
This commit is contained in:
parent
9ae125cea1
commit
6399aac4d5
8
main.go
8
main.go
@ -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)
|
||||
}
|
||||
|
@ -1 +1,2 @@
|
||||
tests:ensure :run -v
|
||||
tests:assert-stdout 'standalone build'
|
||||
|
Loading…
x
Reference in New Issue
Block a user