1
0
Fork 0
mirror of https://codeberg.org/tyy/aspm synced 2024-12-22 15:59:29 -07:00

Add back newline to export command, surpress codegen warnings

This commit is contained in:
Tyler Beckman 2024-02-19 21:44:26 -07:00
parent 4a68f17aa4
commit b545ffe364
Signed by: Ty
GPG key ID: 2813440C772555A4
2 changed files with 2 additions and 4 deletions

View file

@ -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");
}

View file

@ -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};