More rust. I have no idea what I'm doing and I am beginning to think golang is better.
This commit is contained in:
parent
af21756cef
commit
08aac599a6
4 changed files with 318 additions and 1 deletions
29
src/bin/evinfo.rs
Normal file
29
src/bin/evinfo.rs
Normal file
|
@ -0,0 +1,29 @@
|
|||
use std::io;
|
||||
|
||||
use clap::Parser;
|
||||
use evdev::Device;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
#[arg(short, long)]
|
||||
verbose: bool,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = Args::parse();
|
||||
let mut _verbosity = 0;
|
||||
if args.verbose {
|
||||
_verbosity += 1;
|
||||
}
|
||||
|
||||
let devices = get_devices();
|
||||
|
||||
for _device in devices.iter() {
|
||||
// print_device(device);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_devices() -> Vec<evdev::Device> {
|
||||
return Vec::new();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue