Expand description
§Looneygrep Library
This library provides the core functionality for the looneygrep command-line tool.
It exposes configuration parsing, file searching (case-sensitive and insensitive), and the main run logic.
§Example
use looneygrep::{Config, run};
let config = Config {
query: String::from("foo"),
file_path: String::from("bar.txt"),
ignore_case: false
};
run(config)?;§Features
- Search files or web pages for a query string
- Optional case-insensitive search
- Prompt-to-replace matches interactively
- Show context lines around matches
- Syntax highlighting for code files
- File type awareness
- Search all files in a directory with
--all
§Usage
looneygrep <query> <filename> [--ignore-case] [--replace] [--context N] [--url <url>] [--all]Structs§
- Config
- Configuration for the search operation.