mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Update cli to minio-io/cli
This commit is contained in:
7
Godeps/_workspace/src/github.com/minio-io/cli/app.go
generated
vendored
7
Godeps/_workspace/src/github.com/minio-io/cli/app.go
generated
vendored
@@ -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)
|
||||
|
||||
9
Godeps/_workspace/src/github.com/minio-io/cli/help.go
generated
vendored
9
Godeps/_workspace/src/github.com/minio-io/cli/help.go
generated
vendored
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user