feat: update progress

This commit is contained in:
2023-10-15 22:22:16 +08:00
parent 47a0625dcc
commit 7d0115541f
4 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ use crate::consts::{
};
use crate::crypto_aes::{aes_gcm_decrypt, try_aes_gcm_decrypt_with_salt};
use crate::spec::{EncEncryptedMeta, TinyEncryptEnvelop, TinyEncryptEnvelopType, TinyEncryptMeta};
use crate::util_process::Progress;
use crate::util_progress::Progress;
use crate::wrap_key::WrapKey;
#[derive(Debug, Args)]

View File

@@ -24,7 +24,7 @@ use crate::spec::{
EncEncryptedMeta, EncMetadata, TINY_ENCRYPT_VERSION_10,
TinyEncryptEnvelop, TinyEncryptEnvelopType, TinyEncryptMeta,
};
use crate::util_process::Progress;
use crate::util_progress::Progress;
use crate::wrap_key::{WrapKey, WrapKeyHeader};
#[derive(Debug, Args)]

View File

@@ -11,7 +11,7 @@ use crate::cmd_version::CmdVersion;
mod consts;
mod util;
mod util_process;
mod util_progress;
mod util_piv;
mod util_pgp;
mod util_p256;

View File

@@ -1,7 +1,7 @@
use indicatif::{ProgressBar, ProgressStyle};
const PB_PROGRESS: &str = "#-";
const PB_TEMPLATE: &str = "{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({eta})";
const PB_TEMPLATE: &str = "{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} {bytes_per_sec} ({eta})";
pub struct Progress {