From f59c4c1f9e25f88c585ac67835b2212de0df9022 Mon Sep 17 00:00:00 2001
From: ChanTsune <41658782+ChanTsune@users.noreply.github.com>
Date: Tue, 8 Oct 2024 16:05:26 +0900
Subject: [PATCH] :construction: Enhance anyhow
---
cli/src/command.rs | 6 +++---
cli/src/command/commons.rs | 14 ++++++++------
cli/src/command/create.rs | 22 ++++++++++------------
cli/src/command/extract.rs | 6 ++----
cli/src/command/list.rs | 2 +-
cli/src/command/stdio.rs | 16 +++++-----------
cli/src/command/update.rs | 6 +++---
7 files changed, 32 insertions(+), 40 deletions(-)
diff --git a/cli/src/command.rs b/cli/src/command.rs
index e04c4171..a4f3c087 100644
--- a/cli/src/command.rs
+++ b/cli/src/command.rs
@@ -18,7 +18,7 @@ pub mod update;
mod xattr;
use crate::cli::{CipherAlgorithmArgs, Cli, Commands, PasswordArgs};
-use std::{fs, io};
+use std::fs;
pub fn entry(cli: Cli) -> anyhow::Result<()> {
match cli.commands {
@@ -34,7 +34,7 @@ pub fn entry(cli: Cli) -> anyhow::Result<()> {
}
}
-fn ask_password(args: PasswordArgs) -> io::Result