oxyde_cloud_cli/commands/
mod.rs

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