solana_tools_lite_cli/flows/presenter/
verify_presenter.rs1use crate::flows::presenter::{Presentable, emit_line, pretty_print_json};
4use crate::shell::error::CliError;
5use solana_tools_lite::models::results::VerifyResult;
6
7impl Presentable for VerifyResult {
8 fn present(
9 &self,
10 json: bool,
11 _show_secret: bool,
12 to_stderr: bool,
13 ) -> Result<(), CliError> {
14 if json {
15 return pretty_print_json(self, to_stderr);
16 }
17 emit_line("[✓] Signature is valid", to_stderr);
18
19 Ok(())
20 }
21}