pub mod local;
pub mod remote;
use clap::Parser;
use crate::context::HeatCliContext;
use crate::cli_commands::run::{local::LocalRunSubcommand, remote::RemoteRunSubcommand};
#[derive(Parser, Debug)]
pub enum RunLocationType {
#[command(subcommand)]
Local(LocalRunSubcommand),
#[command(subcommand)]
Remote(RemoteRunSubcommand),
}
pub(crate) fn handle_command(args: RunLocationType, context: HeatCliContext) -> anyhow::Result<()> {
match args {
RunLocationType::Local(local_args) => local::handle_command(local_args, context),
RunLocationType::Remote(remote_args) => remote::handle_command(remote_args, context),
}
}