Crate rrun_ssh

Source
Expand description

The command-line tool works in the following order:

  1. RemoteMounts::load is called to load the contents of /etc/mtab into an internal struct.
  2. RemoteMounts::into_current_dir is called to convert the above into a Location.
  3. Location::into_env_args is called to convert the above into ProgramArgs.
  4. ProgramArgs::into_command is called to convert the above into std::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.