oxyde_cloud_cli/commands/
mod.rs

1use lazy_static::lazy_static;
2use tera::Tera;
3
4pub mod deploy_config;
5pub mod init;
6pub mod log;
7pub mod login;
8pub mod logout;
9
10lazy_static! {
11    pub static ref TEMPLATES: Tera = {
12        let mut tera = Tera::default();
13
14        if let Err(e) = tera.add_raw_template(
15            "oxyde-cloud.toml",
16            include_str!("../../templates/oxyde-cloud.toml"),
17        ) {
18            println!("Parsing error(s): {}", e);
19            ::std::process::exit(1);
20        }
21
22        if let Err(e) = tera.add_raw_template(
23            "github-workflow.yml",
24            include_str!("../../templates/github-workflow.yml"),
25        ) {
26            println!("Parsing error(s): {}", e);
27            ::std::process::exit(1);
28        }
29
30        tera
31    };
32}