extern crate rand;
use rand::seq::SliceRandom;
extern crate log;
use log::{error};
fn main() -> Result<(), Box<dyn std::error::Error>>{
let commands: Vec<Vec<&'static str>> = vcmd::get_commands();
let command = commands.choose(&mut rand::thread_rng());
match command {
Some(c) => println!("🚀 Vim Command: {}, {}", c[0], c[1]),
None => error!("Random command choice failed"),
}
Ok(())
}