builtins : ajout mention (super) dans la fonction cd

This commit is contained in:
Ahurac 2024-04-15 13:22:38 +02:00
parent 4f11bc71f6
commit 41cfc8c768

View file

@ -3,7 +3,7 @@ use crate::{error::print_error, exit_code::ExitCode};
use std::env; use std::env;
use std::{env::set_current_dir, path::PathBuf}; use std::{env::set_current_dir, path::PathBuf};
pub fn cd(args: &Vec<String>) -> ExitCode { pub(super) fn cd(args: &Vec<String>) -> ExitCode {
let path: Option<PathBuf>; let path: Option<PathBuf>;
if !args.is_empty() { if !args.is_empty() {