28 lines
509 B
1
mod cli;
2
mod memory;
3
mod process;
4
mod scanner;
5
6
use anyhow::Result;
7
use clap::Parser;
8
use log::error;
9
10
#[derive(Parser)]
11
#[command(author, version, about, long_about = None)]
12
struct Args {
13
/// Process name to attach to
14
process_name: String,
15
}
16
17
fn 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
}
29