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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/googler.ts" license = "MIT" [[commands.field]] id = "keywords" label = "Keywords" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.field]] id = "count" label = "Number of results" type = "integer" option = ["--count", "-n"] sources = ["fig"] [[commands.field]] id = "start" label = "Start at result" type = "integer" option = ["--start", "-s"] sources = ["fig"] [[commands.field]] id = "site" label = "Search a site" description = "Search only this site." type = "string" option = ["--site", "-w"] sources = ["fig"] [[commands.field]] 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"] [[commands.field]] id = "tld" label = "Top-level domain" description = "Country-specific search, e.g. 'in'." type = "string" option = ["--tld", "-c"] sources = ["fig"] [[commands.field]] id = "lang" label = "Display language" type = "string" option = ["--lang", "-l"] sources = ["fig"] [[commands.field]] id = "geoloc" label = "Geolocation country code" type = "string" option = ["--geoloc", "-g"] sources = ["fig"] [[commands.field]] id = "news" label = "News results" type = "boolean" option = ["--news", "-N"] sources = ["fig"] [[commands.field]] id = "videos" label = "Video results" type = "boolean" option = ["--videos", "-V"] sources = ["fig"] [[commands.field]] id = "exact" label = "Disable spelling correction" type = "boolean" option = ["--exact", "-x"] sources = ["fig"] [[commands.field]] 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"] [[commands.field]] id = "json" label = "JSON output" description = "Implies --noprompt." type = "boolean" option = ["--json"] sources = ["fig"] [[commands.field]] id = "noprompt" label = "Do not prompt" type = "boolean" option = ["--noprompt", "--np"] sources = ["fig"] [[commands.task]] id = "search" label = "Search" fields = ["keywords", "count"] required = ["keywords"] [[commands.task]] id = "site" label = "Search one site" fields = ["keywords", "site", "noprompt"] required = ["keywords", "site"] [[commands.task]] id = "json" label = "JSON results" fields = ["keywords", "count", "json"] required = ["keywords"] set = { json = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["keywords", "count", "site", "time"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["start", "tld", "lang", "geoloc", "news", "videos", "exact", "lucky", "json", "noprompt"]