diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index cb45ccbc..344566ce 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -23,8 +23,8 @@ }, { "ImportPath": "github.com/minio-io/cli", - "Comment": "1.2.0-99-g1ee5c11", - "Rev": "1ee5c115af7856a16f133e2f2d3d9f91895c2ddb" + "Comment": "1.2.0-100-g6d6f8d3", + "Rev": "6d6f8d3cc162bfcb60379888e2f37d73ff6a6253" }, { "ImportPath": "github.com/minio-io/donut", diff --git a/Godeps/_workspace/src/github.com/minio-io/cli/app.go b/Godeps/_workspace/src/github.com/minio-io/cli/app.go index cd290051..96dee73b 100644 --- a/Godeps/_workspace/src/github.com/minio-io/cli/app.go +++ b/Godeps/_workspace/src/github.com/minio-io/cli/app.go @@ -3,12 +3,13 @@ package cli import ( "fmt" "io" - "io/ioutil" "os" "strings" + "time" + + "io/ioutil" "text/tabwriter" "text/template" - "time" ) // App is the main structure of a cli application. It is recomended that @@ -44,6 +45,8 @@ type App struct { CommandNotFound func(context *Context, command string) // Compilation date Compiled time.Time + // ExtraInfo pass additional info as a key value map + ExtraInfo map[string]string // List of all authors who contributed Authors []Author // Name of Author (Note: Use App.Authors, this is deprecated) diff --git a/Godeps/_workspace/src/github.com/minio-io/cli/help.go b/Godeps/_workspace/src/github.com/minio-io/cli/help.go index a6083fcb..f0224646 100644 --- a/Godeps/_workspace/src/github.com/minio-io/cli/help.go +++ b/Godeps/_workspace/src/github.com/minio-io/cli/help.go @@ -14,9 +14,12 @@ USAGE: VERSION: {{.Version}} -AUTHOR(S): - {{range .Authors}}{{ . }} {{end}} - +BUILD: + {{.Compiled}} +{{range $key, $value := .ExtraInfo}} +{{ $key }}: + {{ $value }} +{{ end }} COMMANDS: {{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}} {{end}}{{if .Flags}} diff --git a/buildscripts/git-commit-id.sh b/buildscripts/git-commit-id.sh index 37daea45..8671f1d0 100644 --- a/buildscripts/git-commit-id.sh +++ b/buildscripts/git-commit-id.sh @@ -10,10 +10,9 @@ cat > $CONST_FILE <