Struct spurs::SshCommand[][src]

pub struct SshCommand { /* fields omitted */ }

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.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.