Home
last modified time | relevance | path

Searched refs:path (Results 1 – 6 of 6) sorted by relevance

/NovaShell/src/shell/command/
H A Dmod.rs58 let path = match args.len() { in shell_cmd_cd() localVariable
61 Ok(path) => { in shell_cmd_cd()
62 if !path.is_dir() { in shell_cmd_cd()
63 return Err(ExecuteErrorType::NotDir(path.to_str().unwrap().to_string())); in shell_cmd_cd()
65 path.to_str().unwrap().to_string() in shell_cmd_cd()
71 if let Err(_) = std::env::set_current_dir(&path) { in shell_cmd_cd()
81 if let Ok(path) = std::fs::canonicalize(name) { in shell_cmd_exec()
82 if path.is_file() { in shell_cmd_exec()
83 Ok(path) in shell_cmd_exec()
/NovaShell/src/shell/
H A Dprinter.rs29 path: EnvManager::current_dir(), in new()
178 path: String, field
183 format!("{}@{}:{}$ ", self.user_name, self.computer_name, self.path).len() in len()
187 self.path = EnvManager::current_dir() in update_path()
197 self.path.bright_cyan() in fmt()
/NovaShell/
H A DCargo.toml17 path-clean = "1.0.1"
H A DMakefile50 RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) install --path . --no-track --root $(INSTALL_DIR) --force
/NovaShell/src/
H A Dparser.rs294 ExecuteErrorType::NotDir(ref path) => eprintln!("Not a Directory: {path}"), in handle()
295 ExecuteErrorType::NotFile(ref path) => eprintln!("Not a File: {path}"), in handle()
535 let path = if cmd.name.contains('/') { in execute() localVariable
537 if let Ok(path) = std::fs::canonicalize(&cmd.name) { in execute()
538 if path.is_file() { in execute()
539 Ok(path) in execute()
554 match path { in execute()
H A Denv.rs4 path::Path,