nu 0.1.2

A shell for the GitHub era
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::parser::{CallNode, Span, Spanned};
use derive_new::new;
use getset::Getters;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, new)]
pub struct Pipeline {
    crate parts: Vec<PipelineElement>,
    crate post_ws: Option<Span>,
}

#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Getters, new)]
pub struct PipelineElement {
    pub pre_ws: Option<Span>,
    #[get = "crate"]
    call: Spanned<CallNode>,
    pub post_ws: Option<Span>,
    pub post_pipe: Option<Span>,
}