rumdl 0.1.51

A fast Markdown linter written in Rust (Ru(st) MarkDown Linter)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Handler for the `vscode` command.

use colored::*;
use rumdl_lib::exit_codes::exit;

/// Handle VS Code extension installation, update, and status.
pub fn handle_vscode(force: bool, update: bool, status: bool) {
    match rumdl_lib::vscode::handle_vscode_command(force, update, status) {
        Ok(()) => {}
        Err(e) => {
            eprintln!("{}: {}", "Error".red().bold(), e);
            exit::tool_error();
        }
    }
}