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:
parent
4a68f17aa4
commit
b545ffe364
2 changed files with 2 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue