feat: udpate keyring.rs
This commit is contained in:
@@ -63,6 +63,9 @@ pub struct CmdGet {
|
||||
// JSON output
|
||||
#[arg(long)]
|
||||
pub json: bool,
|
||||
// Raw output
|
||||
#[arg(long)]
|
||||
pub raw: bool,
|
||||
}
|
||||
|
||||
fn main() -> XResult<()> {
|
||||
@@ -93,6 +96,8 @@ fn main() -> XResult<()> {
|
||||
result.insert("user", cmd_get.user.to_string());
|
||||
result.insert("password", password.to_string());
|
||||
println!("{}", serde_json::to_string_pretty(&result)?);
|
||||
} else if cmd_get.raw {
|
||||
print!("{}", password);
|
||||
} else {
|
||||
success!("Got password: {}", password);
|
||||
}
|
||||
@@ -101,5 +106,5 @@ fn main() -> XResult<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20251019T145514+08:00.MEUCIQDgJgYEeTPSuknNc6eR
|
||||
// Ms8aT4vjloKezJUblkBPKiSDFQIgDfLdrgc4GgkjyKGe4YcjqSxTutaSAJ/KIitSvzpjg+U=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20251020T000849+08:00.MEQCIFcMEJOSE3+uJTzhAE1C
|
||||
// nV8sLPXE3E1uspg7Q7uLYzW/AiAFdhpS/8OLK6Ex2alVVHQOAkTnpP57pKLKWnxf+HNbMw==
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
},
|
||||
"connect.rs": {
|
||||
"script_name": "connect.rs",
|
||||
"script_length": 6006,
|
||||
"script_sha256": "ea228cdce2454df461b4da51b1742712a1bd8b2fa2e77001c810ac378b687221",
|
||||
"script_length": 6475,
|
||||
"script_sha256": "f0cc02ed76cf97974e19fe14873c2af8c0a87f6bcaa85f344110719047991907",
|
||||
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/connect-rs/src/main.rs",
|
||||
"publish_time": 1760367513436,
|
||||
"update_time": 1760858747227
|
||||
"update_time": 1760890167503
|
||||
},
|
||||
"current-time.rs": {
|
||||
"script_name": "current-time.rs",
|
||||
@@ -66,11 +66,11 @@
|
||||
},
|
||||
"keyring.rs": {
|
||||
"script_name": "keyring.rs",
|
||||
"script_length": 2944,
|
||||
"script_sha256": "757c70a4b6c1c7fb7077a2bf985283907ed62e590a76793f65a075b4acc31274",
|
||||
"script_length": 3074,
|
||||
"script_sha256": "7f5e195881b0a3b091e6dc86d01f5f4d16a4be22d729ffa23f3766797523e1ed",
|
||||
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/keyring-rs/src/main.rs",
|
||||
"publish_time": 1760858747229,
|
||||
"update_time": 1760858747229
|
||||
"update_time": 1760890167506
|
||||
},
|
||||
"makepassword.rs": {
|
||||
"script_name": "makepassword.rs",
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
},
|
||||
"connect-rs": {
|
||||
"script_name": "connect-rs",
|
||||
"script_length": 6006,
|
||||
"script_sha256": "ea228cdce2454df461b4da51b1742712a1bd8b2fa2e77001c810ac378b687221"
|
||||
"script_length": 6475,
|
||||
"script_sha256": "f0cc02ed76cf97974e19fe14873c2af8c0a87f6bcaa85f344110719047991907"
|
||||
},
|
||||
"current-time-rs": {
|
||||
"script_name": "current-time-rs",
|
||||
@@ -36,8 +36,8 @@
|
||||
},
|
||||
"keyring-rs": {
|
||||
"script_name": "keyring-rs",
|
||||
"script_length": 2944,
|
||||
"script_sha256": "757c70a4b6c1c7fb7077a2bf985283907ed62e590a76793f65a075b4acc31274"
|
||||
"script_length": 3074,
|
||||
"script_sha256": "7f5e195881b0a3b091e6dc86d01f5f4d16a4be22d729ffa23f3766797523e1ed"
|
||||
},
|
||||
"makepassword-rs": {
|
||||
"script_name": "makepassword-rs",
|
||||
|
||||
Reference in New Issue
Block a user