Expand description
§wiky
A beautiful, colorful Wikipedia CLI and library with full Markdown rendering, emoji support, hex color theming, and a TOML-based config system.
§Library Usage
use wiky::{WikiClient, Config};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let config = Config::load()?;
let client = WikiClient::new(config)?;
// Search Wikipedia
let results = client.search("Rust programming language", 5).await?;
for r in &results {
println!("{}: {}", r.title, r.snippet);
}
// Fetch and render a full article
let article = client.fetch_article("Rust (programming language)").await?;
println!("{}", article.title);
Ok(())
}Re-exports§
pub use client::WikiClient;pub use config::Config;pub use error::WikiError;pub use render::Renderer;pub use theme::Theme;