vcmd 0.0.2

A tool to generate Vim commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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(())
}