13 releases (5 stable)

3.0.2 Mar 16, 2024
3.0.0 Jul 5, 2020
2.0.1 Jul 4, 2020
1.0.0 Apr 24, 2019
0.8.0 Mar 12, 2019

#172 in #address

Download history 18/week @ 2024-07-24 5/week @ 2024-07-31 2/week @ 2024-09-18 7/week @ 2024-09-25 3/week @ 2024-10-02

453 downloads per month

Apache-2.0

10KB
202 lines

nbssh

This tool is no longer under active development. If you are interested in taking over or repurposing the name on crates.io, feel free to contact me: nbishop@nbishop.net

crates.io Documentation

SSH command generator. Example usage:

use nbssh::{Address, SshParams};
use std::process::Command;

let params = SshParams {
  address: Address::from_host("myHost"),
  ..Default::default()
};
let args = params.command(&["echo", "hello"]);
Command::new(&args[0]).args(&args[1..]).status().unwrap();

lib.rs:

SSH command generator. Example usage:

use nbssh::{Address, SshParams};
use std::process::Command;

let params = SshParams {
  address: Address::from_host("myHost"),
  ..Default::default()
};
let args = params.command(&["echo", "hello"]);
Command::new(&args[0]).args(&args[1..]).status().unwrap();

Dependencies

~0.3–1MB
~21K SLoC