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"
|
||||
|
||||
"gopkg.in/src-d/enry.v1"
|
||||
"gopkg.in/src-d/enry.v1/data"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -112,13 +113,13 @@ func main() {
|
||||
func usage() {
|
||||
fmt.Fprintf(
|
||||
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
|
||||
usage: %[1]s <path>
|
||||
%[1]s [-json] [-breakdown] <path>
|
||||
%[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