From 99d2085aad22eeb11dab492e52470c5380e1549a Mon Sep 17 00:00:00 2001 From: Manuel Carmona Date: Tue, 18 Jul 2017 09:58:44 +0200 Subject: [PATCH] added linguist version to CLI --- cli/enry/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/enry/main.go b/cli/enry/main.go index ec40af6..fe96480 100644 --- a/cli/enry/main.go +++ b/cli/enry/main.go @@ -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 %[1]s [-json] [-breakdown] %[1]s [-json] [-breakdown] `, - os.Args[0], version, build, commit, + os.Args[0], version, build, commit, data.LinguistCommit[:7], ) }