bnb-shell 0.1.1

A fast, polished, cross-platform terminal shell built in Rust with Powerlevel10k aesthetics.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, PartialEq)]
pub enum Redirection {
    OutputTruncate(String), // >
    OutputAppend(String),   // >>
    Input(String),          // <
}

#[derive(Debug, Clone)]
pub struct Command {
    pub args: Vec<String>,
    pub redirections: Vec<Redirection>,
}

#[derive(Debug, Clone)]
pub struct Pipeline {
    pub commands: Vec<Command>,
    pub run_in_background: bool, // &
}