Expand description
§GitHub Code Searching
A Rust library for searching code on GitHub with advanced features like concurrent searches, rate-limit handling, and progress visualization.
§Main Components
GitHubSearcher
: The core component that handles all search operationsArgs
: Command line argument structure for configuring search parameters
§Example
use github_code_searching::{Args, GitHubSearcher};
use clap::Parser;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Parse command line arguments
let args = Args::parse();
// Initialize the searcher
let searcher = GitHubSearcher::new(&args).await?;
// Run searches for the provided terms
searcher.run(vec!["rust async".to_string(), "tokio select".to_string()]).await?;
Ok(())
}
Structs§
- Args
- GitHub Code Search CLI tool for searching code on GitHub with advanced features including concurrency control, rate-limit handling and progress visualization.
- GitHub
Searcher - GitHubSearcher handles all aspects of searching for code on GitHub, including authentication, API rate limiting, concurrent processing, and results management.