nestrs-cli-rs 0.1.0

Rust port of the Nest CLI for the nestrs organization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Error message helpers for nestrs CLI.

pub fn missing_rust_config(path: &str) -> String {
    format!(
        "Could not find Rust configuration file \"{path}\". Please, ensure that you are running this command inside a nestrs workspace."
    )
}

pub fn wrong_plugin(name: &str) -> String {
    format!("The \"{name}\" plugin is not a Rust-native nestrs compiler plugin.")
}

pub const CLI_ERRORS: &[(&str, &str)] = &[
    ("MISSING_RUST_CONFIG", "missing_rust_config"),
    ("WRONG_PLUGIN", "wrong_plugin"),
];