From 10fbed38084dbe3bd338c66934086db8801d827e Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 30 Jul 2020 16:51:42 -0500 Subject: [PATCH] updated cmd builtin commands (#2266) * updated cmd builtin commands * removed cd, chdir, exit, prompt, rem * remove more commands, what remains is useful * cargo fmt is so finicky --- crates/nu-cli/src/commands/classified/external.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/nu-cli/src/commands/classified/external.rs b/crates/nu-cli/src/commands/classified/external.rs index a3251f734e..32fbeb4155 100644 --- a/crates/nu-cli/src/commands/classified/external.rs +++ b/crates/nu-cli/src/commands/classified/external.rs @@ -380,10 +380,11 @@ pub fn did_find_command(#[allow(unused)] name: &str) -> bool { if which::which(name).is_ok() { true } else { + // Reference: https://ss64.com/nt/syntax-internal.html let cmd_builtins = [ - "call", "cls", "color", "date", "dir", "echo", "find", "hostname", "pause", - "start", "time", "title", "ver", "copy", "mkdir", "rename", "rd", "rmdir", "type", - "mklink", + "assoc", "break", "color", "copy", "date", "del", "dir", "dpath", "echo", "erase", + "for", "ftype", "md", "mkdir", "mklink", "move", "path", "ren", "rename", "rd", + "rmdir", "set", "start", "time", "title", "type", "ver", "verify", "vol", ]; cmd_builtins.contains(&name)