mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
Merge pull request #82 from mcarmonaa/improvement/linguist-version
added linguist version to CLI
This commit is contained in:
commit
200c153302
@ -11,6 +11,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"gopkg.in/src-d/enry.v1"
|
"gopkg.in/src-d/enry.v1"
|
||||||
|
"gopkg.in/src-d/enry.v1/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -112,13 +113,13 @@ func main() {
|
|||||||
func usage() {
|
func usage() {
|
||||||
fmt.Fprintf(
|
fmt.Fprintf(
|
||||||
os.Stderr,
|
os.Stderr,
|
||||||
` %[1]s %[2]s build: %[3]s commit: %[4]s
|
` %[1]s %[2]s build: %[3]s commit: %[4]s, based on linguist commit: %[5]s
|
||||||
%[1]s, A simple (and faster) implementation of github/linguist
|
%[1]s, A simple (and faster) implementation of github/linguist
|
||||||
usage: %[1]s <path>
|
usage: %[1]s <path>
|
||||||
%[1]s [-json] [-breakdown] <path>
|
%[1]s [-json] [-breakdown] <path>
|
||||||
%[1]s [-json] [-breakdown]
|
%[1]s [-json] [-breakdown]
|
||||||
`,
|
`,
|
||||||
os.Args[0], version, build, commit,
|
os.Args[0], version, build, commit, data.LinguistCommit[:7],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user