ord/subcommand/
parse.rs

1use super::*;
2
3#[derive(Debug, Parser)]
4pub(crate) struct Parse {
5  #[arg(help = "Parse <OBJECT>.")]
6  object: Object,
7}
8
9#[derive(Debug, PartialEq, Serialize, Deserialize)]
10pub struct Output {
11  pub object: Object,
12}
13
14impl Parse {
15  pub(crate) fn run(self) -> SubcommandResult {
16    Ok(Some(Box::new(Output {
17      object: self.object,
18    })))
19  }
20}