mahjong_cli/
base.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::print_game::PrintGameOpts;
use crate::simulate::SimulateOpts;

#[derive(Debug, Clone, PartialEq)]
pub enum AppCommand {
    Simulate(SimulateOpts),
    PrintGame(PrintGameOpts),
}

pub struct App {
    pub command: Option<AppCommand>,
}

impl App {
    pub fn new() -> Self {
        Self { command: None }
    }
}