pub fn distant_subcommand(ctx: &DistantServerCtx, subcommand: &str) -> Command {
    let mut cmd = Command::new(cargo_bin(env!("CARGO_PKG_NAME")));
    cmd.arg(subcommand)
        .args(&["--session", "environment"])
        .env("DISTANT_HOST", ctx.addr.ip().to_string())
        .env("DISTANT_PORT", ctx.addr.port().to_string())
        .env("DISTANT_KEY", ctx.key.as_str())
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::piped());
    cmd
}
/// Produces a new command for distant using the given subcommand
Produces a new command for distant using the given subcommand
Produces a new command for distant using the given subcommand
pub fn distant_subcommand(ctx: &DistantServerCtx, subcommand: &str) -> Command {
    let mut cmd = Command::new(cargo_bin(env!("CARGO_PKG_NAME")));
    cmd.arg(subcommand)
        .args(&["--session", "environment"])
        .env("DISTANT_HOST", ctx.addr.ip().to_string())
        .env("DISTANT_PORT", ctx.addr.port().to_string())
        .env("DISTANT_KEY", ctx.key.as_str())
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::piped());
    cmd
}
pub fn distant_subcommand ( ctx : & DistantServerCtx , subcommand : & str ) -> Command { let mut cmd = Command :: new ( cargo_bin ( env ! ( " " ) ) ) ; cmd . arg ( subcommand ) . args ( & [ " " , " " ] ) . env ( " " , ctx . addr . ip ( ) . to_string ( ) ) . env ( " " , ctx . addr . port ( ) . to_string ( ) ) . env ( " " , ctx . key . as_str ( ) ) . stdin ( Stdio :: piped ( ) ) . stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ; cmd }
Produces a new command for distant using the given subcommand
Produces a new command for distant using the given subcommand
ctx
&DistantServerCtx
subcommand
&str