1pub mod bundle;
2pub mod schema;
3pub mod sources {
4 pub mod git_context;
5 pub mod image_processing;
6 pub mod macos_agent;
7 pub mod screen_record;
8}
9
10use clap::{Args, Subcommand};
11
12pub const EXIT_OK: i32 = 0;
13pub const EXIT_RUNTIME_ERROR: i32 = 1;
14
15#[derive(Debug, Args)]
16pub struct DebugArgs {
17 #[command(subcommand)]
18 pub command: Option<DebugSubcommand>,
19}
20
21#[derive(Debug, Subcommand)]
22pub enum DebugSubcommand {
23 Bundle(bundle::BundleArgs),
25}
26
27pub fn run(command: DebugSubcommand) -> i32 {
28 match command {
29 DebugSubcommand::Bundle(args) => bundle::run(args),
30 }
31}