You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -73,60 +70,3 @@ var orgsGetCommand = clicompat.Wrap(&cli.Command{
73
70
returnexecTemplate(tmpl, result.Organization)
74
71
},
75
72
})
76
-
77
-
funcinit() {
78
-
usage:=orgsGetExamples
79
-
80
-
flagSet:=flag.NewFlagSet("get", flag.ExitOnError)
81
-
usageFunc:=func() {
82
-
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src orgs %s':\n", flagSet.Name())
83
-
flagSet.PrintDefaults()
84
-
fmt.Println(usage)
85
-
}
86
-
var (
87
-
nameFlag=flagSet.String("name", "", `Look up organization by name. (e.g. "abc-org")`)
88
-
formatFlag=flagSet.String("f", "{{.|json}}", `Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}} ({{.DisplayName}})")`)
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src orgs %s':\n", flagSet.Name())
101
-
flagSet.PrintDefaults()
102
-
fmt.Println(usage)
103
-
}
104
-
var (
105
-
firstFlag=flagSet.Int("first", 1000, "Returns the first n organizations from the list.")
106
-
queryFlag=flagSet.String("query", "", `Returns organizations whose names match the query. (e.g. "alice")`)
107
-
formatFlag=flagSet.String("f", "{{.Name}}", `Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}} ({{.DisplayName}})" or "{{.|json}}")`)
0 commit comments