RustyTerm 0.1.3

RustyTerm is an advanced terminal fully build in Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io::{self, Write};
use std::process::{exit, Command};
use std::{env, path};

pub fn pwd() -> std::io::Result<()> {
    let path = env::current_dir()?;
    println!("The current directory is {}", path.display());
    Ok(())
}

// fn main() -> std::io::Result<()> {
//    let path = env::current_dir()?;
//    println!("The current directory is {}", path.display());
//    Ok(())
//}