soroban_cli/commands/cache/actionlog/
mod.rs1use clap::Parser;
2
3pub mod ls;
4pub mod read;
5
6#[derive(Debug, Parser)]
7pub enum Cmd {
8 Ls(ls::Cmd),
10 Read(read::Cmd),
12}
13
14#[derive(thiserror::Error, Debug)]
15pub enum Error {
16 #[error(transparent)]
17 Ls(#[from] ls::Error),
18 #[error(transparent)]
19 Read(#[from] read::Error),
20}
21
22impl Cmd {
23 pub fn run(&self) -> Result<(), Error> {
24 match self {
25 Cmd::Ls(cmd) => cmd.run()?,
26 Cmd::Read(cmd) => cmd.run()?,
27 }
28 Ok(())
29 }
30}