mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Update cli to minio-io/cli
This commit is contained in:
Generated
+2
-2
@@ -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/erasure",
|
||||
|
||||
+5
-2
@@ -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)
|
||||
|
||||
+6
-3
@@ -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