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

#179 in #address

Download history 3/week @ 2024-03-09 122/week @ 2024-03-16 6/week @ 2024-03-23 62/week @ 2024-03-30 15/week @ 2024-04-06

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.4–1MB
~23K SLoC