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/brand.go
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,27 @@ var brandRetrieveSimplified = cli.Command{
152
152
HideHelpCommand: true,
153
153
}
154
154
155
+
varbrandSearch= cli.Command{
156
+
Name: "search",
157
+
Usage: "Search brands by name or domain and get back up to 10 lightweight matches\n(domain, name, logo), most popular first: by Tranco rank, then market cap for\nbrands outside the Tranco list, with text relevance breaking ties. Matching is\nprefix-based with no typo tolerance, so it is suited to autocomplete. Only\nbrands already in the Context.dev index are returned — use /brand/retrieve to\nfetch (and index) a specific domain. Free on Pro and Scale plans; costs 1 credit\nper request on the Free and Starter plans.",
158
+
Suggest: true,
159
+
Flags: []cli.Flag{
160
+
&requestflag.Flag[string]{
161
+
Name: "query",
162
+
Usage: "Search term, matched against brand names and domains by prefix (e.g. 'nike', 'nike.com', 'nik').",
163
+
Required: true,
164
+
QueryPath: "query",
165
+
},
166
+
&requestflag.Flag[[]string]{
167
+
Name: "tag",
168
+
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