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