rrun_ssh/lib.rs
1//! The command-line tool works in the following order:
2//!
3//! 1. [`RemoteMounts::load`](struct.RemoteMounts.html#method.load) is called to load the contents
4//! of `/etc/mtab` into an internal struct.
5//! 2. [`RemoteMounts::into_current_dir`](struct.RemoteMounts.html#method.into_current_dir) is
6//! called to convert the above into a [`Location`](enum.Location.html).
7//! 3. [`Location::into_env_args`](enum.Location.html#method.into_env_args) is called to convert the
8//! above into [`ProgramArgs`](struct.ProgramArgs.html).
9//! 3. [`ProgramArgs::into_command`](struct.ProgramArgs.html#method.into_command) is called to
10//! convert the above into
11//! [`std::process::Command`](https://doc.rust-lang.org/nightly/std/process/struct.Command.html).
12//!
13//! For `rpwd`, only steps 1 and 2 are run, and the resulting `Location` is printed.
14#![cfg_attr(test, feature(plugin))]
15#![cfg_attr(test, plugin(clippy))]
16mod location;
17mod program_args;
18mod remote_location;
19mod remote_mounts;
20pub use location::*;
21pub use program_args::*;
22pub use remote_location::*;
23pub use remote_mounts::*;