chain_spec_generator/cli/
output.rs

1use std::fmt::Display;
2
3use super::commands::GenerateOutput;
4
5pub enum CliOutput {
6    Generate(GenerateOutput),
7}
8
9impl Display for CliOutput {
10    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11        match &self {
12            CliOutput::Generate(output) => output.fmt(f),
13        }
14    }
15}
16
17impl From<GenerateOutput> for CliOutput {
18    fn from(out: GenerateOutput) -> Self {
19        CliOutput::Generate(out)
20    }
21}