We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10687fb commit 020366aCopy full SHA for 020366a
src/command.rs
@@ -103,9 +103,10 @@ pub trait OverSsh {
103
/// let session = Session::connect_mux("me@ssh.example.com", KnownHosts::Strict).await?;
104
/// let echo =
105
/// Command::new("echo")
106
+ /// .env("MY_ENV_VAR", "foo")
107
/// .arg("$MY_ENV_VAR")
108
/// .over_ssh(&session);
- /// assert_matches!(echo, Err(openssh::Error::CommandHasEnv));
109
+ /// assert!(matches!(echo, Err(openssh::Error::CommandHasEnv)));
110
///
111
/// # Ok(())
112
/// }
0 commit comments