{
  "id": "googler",
  "name": "googler",
  "description": "Google from the command line.",
  "homepage": "https://github.com/jarun/googler",
  "executables": [
    "googler"
  ],
  "commands": {
    "format": 1,
    "label": "Search Google",
    "description": "Search Google from the terminal. Proxy, colour and self-upgrade options are left out.",
    "quality": "ai-draft",
    "base": "fig:googler",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/googler.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "keywords",
        "label": "Keywords",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "count",
        "label": "Number of results",
        "type": "integer",
        "option": [
          "--count",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "start",
        "label": "Start at result",
        "type": "integer",
        "option": [
          "--start",
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "site",
        "label": "Search a site",
        "description": "Search only this site.",
        "type": "string",
        "option": [
          "--site",
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "time",
        "label": "Time limit",
        "description": "For example h5, d5, w5, m5, y5.",
        "type": "string",
        "option": [
          "--time",
          "-t"
        ],
        "suggestions": [
          {
            "value": "d1",
            "label": "Past day"
          },
          {
            "value": "w1",
            "label": "Past week"
          },
          {
            "value": "m1",
            "label": "Past month"
          },
          {
            "value": "y1",
            "label": "Past year"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tld",
        "label": "Top-level domain",
        "description": "Country-specific search, e.g. 'in'.",
        "type": "string",
        "option": [
          "--tld",
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "lang",
        "label": "Display language",
        "type": "string",
        "option": [
          "--lang",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "geoloc",
        "label": "Geolocation country code",
        "type": "string",
        "option": [
          "--geoloc",
          "-g"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "news",
        "label": "News results",
        "type": "boolean",
        "option": [
          "--news",
          "-N"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "videos",
        "label": "Video results",
        "type": "boolean",
        "option": [
          "--videos",
          "-V"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "exact",
        "label": "Disable spelling correction",
        "type": "boolean",
        "option": [
          "--exact",
          "-x"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "lucky",
        "label": "Open first result",
        "description": "Open the first result in the web browser and exit.",
        "type": "boolean",
        "option": [
          "--first",
          "--lucky",
          "-j"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "json",
        "label": "JSON output",
        "description": "Implies --noprompt.",
        "type": "boolean",
        "option": [
          "--json"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "noprompt",
        "label": "Do not prompt",
        "type": "boolean",
        "option": [
          "--noprompt",
          "--np"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "search",
        "label": "Search",
        "fields": [
          "keywords",
          "count"
        ],
        "required": [
          "keywords"
        ]
      },
      {
        "id": "site",
        "label": "Search one site",
        "fields": [
          "keywords",
          "site",
          "noprompt"
        ],
        "required": [
          "keywords",
          "site"
        ]
      },
      {
        "id": "json",
        "label": "JSON results",
        "fields": [
          "keywords",
          "count",
          "json"
        ],
        "required": [
          "keywords"
        ],
        "set": {
          "json": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "keywords",
          "count",
          "site",
          "time"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "start",
          "tld",
          "lang",
          "geoloc",
          "news",
          "videos",
          "exact",
          "lucky",
          "json",
          "noprompt"
        ]
      }
    ]
  }
}
