mahjong_cli/
base.rs

1use crate::print_game::PrintGameOpts;
2use crate::simulate::SimulateOpts;
3
4#[derive(Debug, Clone, PartialEq)]
5pub enum AppCommand {
6    Simulate(SimulateOpts),
7    PrintGame(PrintGameOpts),
8}
9
10pub struct App {
11    pub command: Option<AppCommand>,
12}
13
14impl App {
15    pub fn new() -> Self {
16        Self { command: None }
17    }
18}