Expand description
The command-line tool works in the following order:
RemoteMounts::loadis called to load the contents of/etc/mtabinto an internal struct.RemoteMounts::into_current_diris called to convert the above into aLocation.Location::into_env_argsis called to convert the above intoProgramArgs.ProgramArgs::into_commandis called to convert the above intostd::process::Command.
For rpwd, only steps 1 and 2 are run, and the resulting Location is printed.
Structs§
- Program
Args - Builder for the command-line arguments for a program.
- Remote
Location - Represents a location on a remote host.
- Remote
Mounts - Encapsulates data on which directories have been remotely mounted.
Enums§
- Location
- Encapsulates a directory in which a program can be executed.