scanmem alternative with concurrent memory scanning
at master 509 B view raw
1mod cli; 2mod memory; 3mod process; 4mod scanner; 5 6use anyhow::Result; 7use clap::Parser; 8use log::error; 9 10#[derive(Parser)] 11#[command(author, version, about, long_about = None)] 12struct Args { 13 /// Process name to attach to 14 process_name: String, 15} 16 17fn main() -> Result<()> { 18 env_logger::init(); 19 let args = Args::parse(); 20 21 match cli::run_interactive_mode(&args.process_name) { 22 Ok(_) => Ok(()), 23 Err(e) => { 24 error!("Error: {}", e); 25 Err(e) 26 } 27 } 28}