mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pvsecret: Cleanup CLI
Fix some typos/wordings and enable CSV parsing for the Additional-data flags. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
@@ -17,7 +17,7 @@ use std::{fmt::Display, process::ExitCode};
|
||||
use utils::HexSlice;
|
||||
|
||||
use crate::{
|
||||
cli::{VerifyOpt, VerifyOutputType},
|
||||
cli::{OutputType, VerifyOpt},
|
||||
exchange::ExchangeFormatResponse,
|
||||
EXIT_CODE_ATTESTATION_FAIL,
|
||||
};
|
||||
@@ -107,7 +107,7 @@ pub fn verify(opt: &VerifyOpt) -> Result<ExitCode> {
|
||||
warn!("{pr_data}");
|
||||
if let Some(mut output) = output {
|
||||
match opt.format {
|
||||
VerifyOutputType::Yaml => serde_yaml::to_writer(&mut output, &pr_data)?,
|
||||
OutputType::Yaml => serde_yaml::to_writer(&mut output, &pr_data)?,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user