From b545ffe364d415417f155bedbfcaca4d4112aab0 Mon Sep 17 00:00:00 2001 From: Ty Date: Mon, 19 Feb 2024 21:44:26 -0700 Subject: [PATCH] Add back newline to export command, surpress codegen warnings --- src/commands/keys/export.rs | 5 +---- src/main.rs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) 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};