mirror of
https://codeberg.org/tyy/aspm
synced 2024-12-23 01:19:28 -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 clap::{Parser, ValueEnum};
|
||||||
use data_encoding::{BASE64, BASE64_NOPAD};
|
use data_encoding::{BASE64, BASE64_NOPAD};
|
||||||
use dialoguer::{theme::ColorfulTheme, Password};
|
use dialoguer::{theme::ColorfulTheme, Password};
|
||||||
use indoc::writedoc;
|
|
||||||
use josekit::jwk::Jwk;
|
use josekit::jwk::Jwk;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
||||||
use std::io::Write;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
commands::{AspmSubcommand, KeysEntityExt, KeysQueryResult},
|
commands::{AspmSubcommand, KeysEntityExt, KeysQueryResult},
|
||||||
entities::prelude::*,
|
entities::prelude::*,
|
||||||
|
@ -175,7 +172,7 @@ impl AspmSubcommand for KeysExportCommand {
|
||||||
fingerprint = decrypted.fingerprint,
|
fingerprint = decrypted.fingerprint,
|
||||||
reset = Reset.render()
|
reset = Reset.render()
|
||||||
);
|
);
|
||||||
let _ = writedoc!(std::io::stdout(), "{export}");
|
println!("{export}");
|
||||||
} else {
|
} else {
|
||||||
eprintln!("There was an error decrypting the key, please make sure the password you entered was correct");
|
eprintln!("There was an error decrypting the key, please make sure the password you entered was correct");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
mod commands;
|
mod commands;
|
||||||
|
#[allow(warnings)] // This is autogenerated, no use in showing warnings
|
||||||
mod entities;
|
mod entities;
|
||||||
|
|
||||||
use anstyle::{AnsiColor, Color as AnstyleColor, Style as Anstyle};
|
use anstyle::{AnsiColor, Color as AnstyleColor, Style as Anstyle};
|
||||||
|
|
Loading…
Reference in a new issue