search-once

Crates.iosearch-once
lib.rssearch-once
version0.1.1
sourcesrc
created_at2024-01-08 13:53:44.276288
updated_at2024-01-09 13:20:52.000335
descriptionA tool to search multiple websites at once
homepagehttps://github.com/sankichi92/search-once
repositoryhttps://github.com/sankichi92/search-once
max_upload_size
id1092554
size20,427
Takahiro Miyoshi (sankichi92)

documentation

README

search-once

A command line application to search multiple websites at once.

Installation

$ cargo install search-once

If you use it on WSL (Windows Subsystem for Linux), you'll require the wslview command included in wslu.

Usage

$ search-once --help
A tool to search multiple websites at once

Usage: search-once [OPTIONS] <QUERY>

Arguments:
  <QUERY>

Options:
  -c, --config <FILE>
  -h, --help           Print help
  -V, --version        Print version

Configuration

You can customize search sites via a YAML configuration file with the following format:

sites:
  - name: GitHub Rust repos
    url: https://github.com/search?q=language%3ARust+%s&type=repositories
  - name: Crates.io
    url: https://crates.io/search?q=%s

The %s placeholder in the URL will be replaced with your query.

The default configuration file will be automatically placed in the appropriate path based on your OS. You can find the path by running search-once <QUERY> without the --config option.

Development

Publishing a new version

  1. Bump the version in Cargo.toml.
  2. Create a git commit, push it, and ensure that the CI passes.
  3. Create a git tag for the new version and push it, then the Crates.io workflow starts.
Commit count: 0

cargo fmt