hypershell-tokio-components 0.1.0-alpha

Modular DSL for shellscripting in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::marker::PhantomData;

use cgp::core::component::UseDelegate;
use cgp::prelude::*;
use tokio::process::Command;

#[cgp_component {
    provider: CommandUpdater,
    derive_delegate: UseDelegate<Args>,
}]
pub trait CanUpdateCommand<Args> {
    fn update_command(&self, _phantom: PhantomData<Args>, command: &mut Command);
}