1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
mod apply;
mod build;
mod cli;
mod tera;
mod utils;
use anyhow::Result;
use env_logger::Env;
#[tokio::main]
async fn main() -> Result<()> {
let env = Env::new().default_filter_or("info,aws_config=error,aws_smithy_http_tower=warn");
env_logger::init_from_env(env);
let args = cli::parse();
match args.cmd {
cli::Command::Build(args) => build::call(args).await,
cli::Command::Apply(args) => apply::call(args).await,
}
}