solana-tools-lite-cli 0.1.2

CLI for solana-tools-lite: offline-first Solana signer toolkit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Trait for presenting flow results to stdout/stderr.

/// Presentable: implement to control how a result is shown.
/// - `json`: pretty JSON when true, otherwise plain text
/// - `show_secret`: allow printing secrets when applicable (may be ignored)
/// - `to_stderr`: emit output to stderr instead of stdout
pub trait Presentable {
    fn present(
        &self,
        json: bool,
        show_secret: bool,
        to_stderr: bool,
    ) -> Result<(), crate::shell::error::CliError>;
}