basiliq 0.1.2

REST API server exposing a Postgres database using JSON:API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

pub mod check;
pub mod generate;

/// Handle the CLI for command relative to the configuration management
pub async fn handle_cli(
    connect_option: BasiliqDbConnectionOption,
    cli_matches: &ArgMatches<'_>,
) -> Option<BasiliqCliResult> {
    match cli_matches.subcommand() {
        ("generate", Some(x)) => generate::handle_cli(connect_option, x).await,
        ("check", Some(x)) => check::handle_cli(connect_option, x).await,
        _ => unreachable!(),
    }
}