clawsh 0.4.0

A shell built in rust for codecrafters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum CommandsError {
    #[error("PATH env var not set")]
    PathNotSet,
    #[error("HOME env var not set")]
    HomeNotSet,
    #[error("Could not obtain current directory")]
    InvalidCurrentDirectory(#[from] io::Error),
}