Struct spurs::ssh::SshCommand

source ·
pub struct SshCommand { /* private fields */ }

Implementations§

Create a new builder for the given command with default options.

Change the current working directory to cwd before executing.

Execute using bash.

Allow a non-zero exit code. Normally, an error would occur and we would return early.

Don’t actually execute any command remotely. Just print the command that would be executed and return success. Note that we still connect to the remote. This is useful for debugging.

Don’t request a psuedo-terminal (pty). It turns out that some commands behave differently with a pty. I’m not really sure what causes this.

NOTE: You need a pty for sudo.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.