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

#186 in #address

Download history 5/week @ 2024-02-25 85/week @ 2024-03-10 45/week @ 2024-03-17 1/week @ 2024-03-24 76/week @ 2024-03-31 1/week @ 2024-04-07

83 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
~24K SLoC