rrun-ssh 0.3.0

Remote run utility; runs a command via SSH if the current directory was mounted via SSHFS.
Documentation
1
2
3
4
5
6
7
8
extern crate rrun_ssh;
use rrun_ssh::*;

fn main() {
    let mounts = RemoteMounts::load().expect("unable to load mtab");
    let location = mounts.into_current_dir().expect("failed to get current directory");
    println!("{}", location);
}