Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sankichi92/search-once
Command line application to search multiple websites at once
https://github.com/sankichi92/search-once
cli-app rust
Last synced: 20 days ago
JSON representation
Command line application to search multiple websites at once
- Host: GitHub
- URL: https://github.com/sankichi92/search-once
- Owner: sankichi92
- License: mit
- Created: 2024-01-08T02:04:17.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T02:10:49.000Z (24 days ago)
- Last Synced: 2024-12-05T03:19:53.428Z (24 days ago)
- Topics: cli-app, rust
- Language: Rust
- Homepage: https://crates.io/crates/search-once
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# search-once
A command line application to search multiple websites at once.
## Installation
```console
$ cargo install search-once
```If you use it on WSL (Windows Subsystem for Linux), you'll require the `wslview` command included in [wslu](https://wslutiliti.es/wslu/).
## Usage
```console
$ search-once --help
A tool to search multiple websites at onceUsage: search-once [OPTIONS]
Arguments:
Options:
-c, --config
-h, --help Print help
-V, --version Print version
```## Configuration
You can customize search sites via a YAML configuration file with the following format:
```yaml
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 ` 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.