diff --git a/src/commands/keys/export.rs b/src/commands/keys/export.rs index e6c55ae..c6fd907 100644 --- a/src/commands/keys/export.rs +++ b/src/commands/keys/export.rs @@ -9,12 +9,9 @@ use asp::keys::AspKey; use clap::{Parser, ValueEnum}; use data_encoding::{BASE64, BASE64_NOPAD}; use dialoguer::{theme::ColorfulTheme, Password}; -use indoc::writedoc; use josekit::jwk::Jwk; use serde::Serialize; -use std::io::Write; - use crate::{ commands::{AspmSubcommand, KeysEntityExt, KeysQueryResult}, entities::prelude::*, @@ -175,7 +172,7 @@ impl AspmSubcommand for KeysExportCommand { fingerprint = decrypted.fingerprint, reset = Reset.render() ); - let _ = writedoc!(std::io::stdout(), "{export}"); + println!("{export}"); } else { eprintln!("There was an error decrypting the key, please make sure the password you entered was correct"); } diff --git a/src/main.rs b/src/main.rs index 9c0b9e9..5e277bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ mod commands; +#[allow(warnings)] // This is autogenerated, no use in showing warnings mod entities; use anstyle::{AnsiColor, Color as AnstyleColor, Style as Anstyle};