pub fn new_cmd(&self, subcommand: impl AsRef<OsStr>) -> Command {
        let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
        cmd.arg(subcommand)
            .args(&["--session", "environment"])
            .env("DISTANT_HOST", self.addr.ip().to_string())
            .env("DISTANT_PORT", self.addr.port().to_string())
            .env("DISTANT_KEY", self.key.as_str());
        cmd
    }
/// Produces a new test command that configures some distant command
/// configured with an environment that can talk to a remote distant server
Produces a new test command that configures some distant command
configured with an environment that can talk to a remote distant server
Produces a new test command that configures some distant command configured with an environment that can talk to a remote distant server
pub fn new_cmd(&self, subcommand: impl AsRef<OsStr>) -> Command {
        let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
        cmd.arg(subcommand)
            .args(&["--session", "environment"])
            .env("DISTANT_HOST", self.addr.ip().to_string())
            .env("DISTANT_PORT", self.addr.port().to_string())
            .env("DISTANT_KEY", self.key.as_str());
        cmd
    }
pub fn new_cmd ( & self , subcommand : impl AsRef < OsStr > ) -> Command { let mut cmd = Command :: cargo_bin ( env ! ( " " ) ) . unwrap ( ) ; cmd . arg ( subcommand ) . args ( & [ " " , " " ] ) . env ( " " , self . addr . ip ( ) . to_string ( ) ) . env ( " " , self . addr . port ( ) . to_string ( ) ) . env ( " " , self . key . as_str ( ) ) ; cmd }
Produces a new test command that configures some distant command
configured with an environment that can talk to a remote distant server
Produces a new test command that configures some distant command configured with an environment that can talk to a remote distant server
&self
subcommand
impl AsRef<OsStr>