feat: ssh.rs
This commit is contained in:
@@ -13,5 +13,6 @@ post-rs
|
||||
rpm-read-rs
|
||||
script-sign-rs
|
||||
script-verify-rs
|
||||
ssh-rs
|
||||
sync-rs
|
||||
xattr-rs
|
||||
|
||||
@@ -128,6 +128,14 @@
|
||||
"publish_time": 1737563113466,
|
||||
"update_time": 1757430653323
|
||||
},
|
||||
"ssh.rs": {
|
||||
"script_name": "ssh.rs",
|
||||
"script_length": 8096,
|
||||
"script_sha256": "2e109554551755c3435218c5508edd2dd75f9f3aca3e40831a6c70e2e56d439d",
|
||||
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/ssh-rs/src/main.rs",
|
||||
"publish_time": 1767355767325,
|
||||
"update_time": 1767355767325
|
||||
},
|
||||
"sync.rs": {
|
||||
"script_name": "sync.rs",
|
||||
"script_length": 1978,
|
||||
|
||||
@@ -74,6 +74,11 @@
|
||||
"script_length": 5783,
|
||||
"script_sha256": "f864fe6ab80437e363859fb6fb3721b7368421868ef3980c68a5c8aa60c0d6f9"
|
||||
},
|
||||
"ssh-rs": {
|
||||
"script_name": "ssh-rs",
|
||||
"script_length": 8096,
|
||||
"script_sha256": "2e109554551755c3435218c5508edd2dd75f9f3aca3e40831a6c70e2e56d439d"
|
||||
},
|
||||
"sync-rs": {
|
||||
"script_name": "sync-rs",
|
||||
"script_length": 1978,
|
||||
|
||||
13
ssh-rs/src/main.rs
Normal file → Executable file
13
ssh-rs/src/main.rs
Normal file → Executable file
@@ -1,3 +1,13 @@
|
||||
#!/usr/bin/env runrs
|
||||
|
||||
//! ```cargo
|
||||
//! [dependencies]
|
||||
//! rust_util = "0.6.50"
|
||||
//! clap = { version = "4.5.49", features = ["derive"] }
|
||||
//! serde = { version = "1.0.228", features = ["derive"] }
|
||||
//! serde_json = "1.0.145"
|
||||
//! ```
|
||||
|
||||
use clap::Parser;
|
||||
use rust_util::{
|
||||
XResult, debugging, failure_and_exit, iff, information, opt_result, simple_error, success,
|
||||
@@ -244,3 +254,6 @@ fn load_ssh_rs_config() -> XResult<SshConfig> {
|
||||
fn get_ssh_rs_config_file() -> String {
|
||||
util_env::env_var(ENV_SSH_RS_CONFIG_FILE).unwrap_or_else(|| SSH_RS_CONFIG_FILE.to_string())
|
||||
}
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260102T200840+08:00.MEUCIQCIoEsCJwGL/nO9MUwA
|
||||
// q3eig5RAt+p0uE4YJPn4wIJtuwIgA+n+sXBgtYjBNZ0lDfB1+fVC7N/3K/LjeWHkxv3/J8k=
|
||||
|
||||
Reference in New Issue
Block a user