1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pub mod cli;
mod commands;
mod compiler;
mod output;
mod source_config;

pub fn hello() {
    println!("Hello, world!");
}

pub async fn run() {
    let cli_args = cli::Cli::from_args();

    match &cli_args.command {
        cli::Command::CheckConfig {
            config_url,
            output,
            format,
        } => {
            commands::check_config::check_config(config_url, output, format).await;
        }
        cli::Command::Compile {
            config_url,
            output,
            format,
        } => {
            commands::compile::compile(config_url, output, format).await;
        }
    };
}