Crates.io | search-cli |
lib.rs | search-cli |
version | 0.4.1 |
source | src |
created_at | 2022-08-21 14:55:44.82983 |
updated_at | 2024-03-22 15:29:09.790277 |
description | Cli program to search for arguments words in the browser. |
homepage | |
repository | https://github.com/masinc/search-cli |
max_upload_size | |
id | 649813 |
size | 67,566 |
This is a binary crate to search the web from CLI
search [PROVIDER] WORD
search
command with provider and word. The provider is optional. if not
specified, the first provider in the configuration file is used.
Usage:
search searchword
search google searchword # provider is google
search g searchword # provider is alias
The following command will output the configuration file path.
search config -p
Edit the output yaml path file with your favorite editor.
The following are the default settings.
version: "v1.0"
providers:
- name: google
aliases:
- g
url: "https://google.com/search?q={{ word | urlencode }}"
- name: bing
url: "https://www.bing.com/search?q={{ word | urlencode }}"
- name: duckduckgo
aliases:
- d
url: "https://duckduckgo.com/?q={{ word | urlencode }}"
Each of these settings is described below.
Currently fixed at "v1.0"
.
An array of provider
key | description |
---|---|
name | Provider Name. This is the name of the command execution. |
aliases | An array of strings. A list of aliases for the command to execute. |
url | Search URL. {{ word }} inserts the contents of the word argument. |
browser | specify a browser name(path) |
URLs are parsed using tera
.
The following command outputs JSON Schema.
search jsonschema
Mit or Apache-2.0