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
//! Upstream source: `../nest-cli/lib/compiler/helpers/manual-restart.ts`.

pub const MANUAL_RESTART_SHORTCUT: &str = "rs";

pub fn display_manual_restart_tip() -> String {
    "To restart at any time, enter `rs`.".to_string()
}

pub fn is_manual_restart_input(input: impl AsRef<str>) -> bool {
    input.as_ref().trim() == MANUAL_RESTART_SHORTCUT
}