1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
mod android;

use crate::error::Result;
use android::AndroidLogCommand;
use clap::Parser;
use crossbundle_tools::utils::Config;

#[derive(Parser, Clone, Debug)]
pub enum LogCommand {
    Android(AndroidLogCommand),
}

impl LogCommand {
    pub fn handle_command(&self, config: &Config) -> Result<()> {
        match self {
            LogCommand::Android(cmd) => cmd.run(config),
        }
    }
}