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
14
15
use std::io;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum CompletionError {
    #[error("PATH env var not set")]
    PathNotSet,
}

impl From<CompletionError> for rustyline::error::ReadlineError {
    fn from(value: CompletionError) -> Self {
        rustyline::error::ReadlineError::Io(io::Error::other(value.to_string()))
    }
}