Crate rrun_ssh [−] [src]
The command-line tool works in the following order:
RemoteMounts::load
is called to load the contents of/etc/mtab
into an internal struct.RemoteMounts::into_current_dir
is called to convert the above into aLocation
.Location::into_env_args
is called to convert the above intoProgramArgs
.ProgramArgs::into_command
is called to convert the above intostd::process::Command
.
For rpwd
, only steps 1 and 2 are run, and the resulting Location
is printed.
Structs
ProgramArgs |
Builder for the command-line arguments for a program. |
RemoteLocation |
Represents a location on a remote host. |
RemoteMounts |
Encapsulates data on which directories have been remotely mounted. |
Enums
Location |
Encapsulates a directory in which a program can be executed. |