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
Copy file name to clipboardExpand all lines: pkg/cmd/batch.go
+15-34Lines changed: 15 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,6 @@ var batchRetrieve = cli.Command{
25
25
Required: true,
26
26
PathParam: "batch_id",
27
27
},
28
-
&requestflag.Flag[[]string]{
29
-
Name: "tag",
30
-
Usage: "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
31
-
QueryPath: "tags",
32
-
},
33
28
},
34
29
Action: handleBatchRetrieve,
35
30
HideHelpCommand: true,
@@ -50,14 +45,24 @@ var batchList = cli.Command{
50
45
Usage: "Batches per page. Defaults to 25.",
51
46
QueryPath: "limit",
52
47
},
48
+
&requestflag.Flag[string]{
49
+
Name: "q",
50
+
Usage: "Free-text search term, matched against the batch id, crawl source (start URL or sitemap domain), and tags.",
51
+
QueryPath: "q",
52
+
},
53
+
&requestflag.Flag[string]{
54
+
Name: "search-type",
55
+
Usage: "`prefix` for as-you-type prefix matching (default), `exact` for full-token matching.",
56
+
QueryPath: "search_type",
57
+
},
53
58
&requestflag.Flag[string]{
54
59
Name: "status",
55
60
Usage: "Filter by status.",
56
61
QueryPath: "status",
57
62
},
58
-
&requestflag.Flag[[]string]{
59
-
Name: "tag",
60
-
Usage: "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
63
+
&requestflag.Flag[string]{
64
+
Name: "tags",
65
+
Usage: "Comma-separated list of tags to filter by (matches batches having any of them).",
61
66
QueryPath: "tags",
62
67
},
63
68
},
@@ -76,11 +81,6 @@ var batchCancel = cli.Command{
76
81
Required: true,
77
82
PathParam: "batch_id",
78
83
},
79
-
&requestflag.Flag[[]string]{
80
-
Name: "tag",
81
-
Usage: "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
82
-
QueryPath: "tags",
83
-
},
84
84
},
85
85
Action: handleBatchCancel,
86
86
HideHelpCommand: true,
@@ -107,11 +107,6 @@ var batchGetResults = cli.Command{
107
107
Usage: "Records per page. Defaults to 25. A page can close early so its payload stays under ~8 MB; rely on next_cursor rather than counting records.",
108
108
QueryPath: "limit",
109
109
},
110
-
&requestflag.Flag[[]string]{
111
-
Name: "tag",
112
-
Usage: "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
0 commit comments