@tiny-fish/cli 0.3.0 → 0.3.1-next.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,8 @@ export function registerSearch(program) {
27
27
  .argument("<query>", "Search query")
28
28
  .option("--location <value>", "Search location hint")
29
29
  .option("--language <value>", "Search language hint")
30
+ .option("--include-domains <value>", "Comma-separated list of domains to restrict results to")
31
+ .option("--exclude-domains <value>", "Comma-separated list of domains to exclude from results")
30
32
  .option("--pretty", "Human-readable output")
31
33
  .action(async (query, opts) => {
32
34
  const apiKey = getApiKey();
@@ -35,6 +37,8 @@ export function registerSearch(program) {
35
37
  query,
36
38
  ...(opts.location !== undefined ? { location: opts.location } : {}),
37
39
  ...(opts.language !== undefined ? { language: opts.language } : {}),
40
+ ...(opts.includeDomains !== undefined ? { include_domains: opts.includeDomains } : {}),
41
+ ...(opts.excludeDomains !== undefined ? { exclude_domains: opts.excludeDomains } : {}),
38
42
  }, apiKey);
39
43
  if (opts.pretty) {
40
44
  printPrettySearch(response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiny-fish/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-next.89",
4
4
  "description": "TinyFish CLI — run web automations from your terminal",
5
5
  "type": "module",
6
6
  "bin": {