Skip to content

Commit 4858023

Browse files
authored
Merge branch 'main' into k/partial-revert
2 parents 9e9df34 + af9956c commit 4858023

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

cmd/src/extsvc_list.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Examples:
2929
fmt.Println(usage)
3030
}
3131
var (
32-
firstFlag = flagSet.Int("first", -1, "Return only the first n external services. (use -1 for unlimited)")
32+
firstFlag = flagSet.Int("first", 1000, "Return only the first n external services.")
3333
formatFlag = flagSet.String("f", "", `Format for the output, using the syntax of Go package text/template. (e.g. "{{.|json}}")`)
3434
apiFlags = api.NewFlags(flagSet)
3535
)
@@ -40,9 +40,6 @@ Examples:
4040
}
4141

4242
first := *firstFlag
43-
if first == -1 {
44-
first = 9999999 // GraphQL API doesn't support negative for unlimited query
45-
}
4643

4744
var formatStr string
4845
if *formatFlag != "" {

cmd/src/orgs_list.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Examples:
1616
1717
$ src orgs list
1818
19-
List *all* organizations (may be slow!):
20-
21-
$ src orgs list -first='-1'
22-
2319
List organizations whose names match the query:
2420
2521
$ src orgs list -query='myquery'
@@ -33,7 +29,7 @@ Examples:
3329
fmt.Println(usage)
3430
}
3531
var (
36-
firstFlag = flagSet.Int("first", 1000, "Returns the first n organizations from the list. (use -1 for unlimited)")
32+
firstFlag = flagSet.Int("first", 1000, "Returns the first n organizations from the list.")
3733
queryFlag = flagSet.String("query", "", `Returns organizations whose names match the query. (e.g. "alice")`)
3834
formatFlag = flagSet.String("f", "{{.Name}}", `Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}} ({{.DisplayName}})" or "{{.|json}}")`)
3935
apiFlags = api.NewFlags(flagSet)

cmd/src/repos_list.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,6 @@ Examples:
165165
166166
$ src repos list -f '{{.|json}}'
167167
168-
List *all* repositories (may be slow!):
169-
170-
$ src repos list -first='-1'
171-
172168
List repositories whose names match the query:
173169
174170
$ src repos list -query='myquery'
@@ -182,7 +178,7 @@ Examples:
182178
fmt.Println(usage)
183179
}
184180
var (
185-
firstFlag = flagSet.Int("first", 1000, "Returns the first n repositories from the list. (use -1 for unlimited)")
181+
firstFlag = flagSet.Int("first", 1000, "Returns the first n repositories from the list.")
186182
queryFlag = flagSet.String("query", "", `Returns repositories whose names match the query. (e.g. "myorg/")`)
187183
// TODO: add support for "names" field.
188184
clonedFlag = flagSet.Bool("cloned", true, "Include cloned repositories.")

cmd/src/users_list.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Examples:
1616
1717
$ src users list
1818
19-
List *all* users (may be slow!):
20-
21-
$ src users list -first='-1'
22-
2319
List users whose names match the query:
2420
2521
$ src users list -query='myquery'
@@ -37,7 +33,7 @@ Examples:
3733
fmt.Println(usage)
3834
}
3935
var (
40-
firstFlag = flagSet.Int("first", 1000, "Returns the first n users from the list. (use -1 for unlimited)")
36+
firstFlag = flagSet.Int("first", 1000, "Returns the first n users from the list.")
4137
queryFlag = flagSet.String("query", "", `Returns users whose names match the query. (e.g. "alice")`)
4238
tagFlag = flagSet.String("tag", "", `Returns users with the given tag.`)
4339
formatFlag = flagSet.String("f", "{{.Username}}", `Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Username}} ({{.DisplayName}})" or "{{.|json}}")`)

0 commit comments

Comments
 (0)