cli/commands/replay/
mod.rs

1pub mod replay_state_with_input_actions;
2pub use replay_state_with_input_actions::ReplayStateWithInputActions;
3
4#[derive(Debug, clap::Args)]
5pub struct Replay {
6    #[command(subcommand)]
7    pub command: ReplayCommand,
8}
9
10#[derive(Debug, clap::Subcommand)]
11pub enum ReplayCommand {
12    StateWithInputActions(ReplayStateWithInputActions),
13}
14
15impl Replay {
16    pub fn run(self) -> anyhow::Result<()> {
17        match self.command {
18            ReplayCommand::StateWithInputActions(v) => v.run(),
19        }
20    }
21}