hypershell-components 0.1.0

Modular DSL for shellscripting in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cgp::prelude::*;

use crate::dsl::StaticArg;

pub trait WrapStaticArg {
    type Wrapped;
}

impl WrapStaticArg for Nil {
    type Wrapped = Nil;
}

impl<Arg, Args> WrapStaticArg for Cons<Arg, Args>
where
    Args: WrapStaticArg,
{
    type Wrapped = Cons<StaticArg<Arg>, Args::Wrapped>;
}