pub const APP_NAME: &str = "stackql-deploy";
pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
pub const APP_AUTHOR: &str = "Jeffrey Aven <javen@stackql.io>";
pub const APP_DESCRIPTION: &str = "Model driven IaC using stackql";
pub const DEFAULT_SERVER_HOST: &str = "localhost";
pub const DEFAULT_SERVER_PORT: u16 = 5444;
pub const DEFAULT_SERVER_PORT_STR: &str = "5444";
pub const LOCAL_SERVER_ADDRESSES: [&str; 3] = ["localhost", "0.0.0.0", "127.0.0.1"];
pub const DEFAULT_LOG_FILE: &str = "stackql.log";
pub const LOG_LEVELS: &[&str] = &["trace", "debug", "info", "warn", "error"];
pub const DEFAULT_LOG_LEVEL: &str = "info";
pub const SUPPORTED_PROVIDERS: [&str; 3] = ["aws", "google", "azure"];
pub const DEFAULT_PROVIDER: &str = "azure";
#[cfg_attr(
target_os = "windows",
doc = "StackQL binary name (platform dependent)"
)]
#[cfg(target_os = "windows")]
pub const STACKQL_BINARY_NAME: &str = "stackql.exe";
#[cfg_attr(
not(target_os = "windows"),
doc = "StackQL binary name (platform dependent)"
)]
#[cfg(not(target_os = "windows"))]
pub const STACKQL_BINARY_NAME: &str = "stackql";
pub const STACKQL_RELEASE_BASE_URL: &str = "https://releases.stackql.io/stackql/latest";
pub const EXEMPT_COMMANDS: [&str; 2] = ["init", "upgrade"];
pub const GITHUB_TEMPLATE_BASE: &str =
"https://raw.githubusercontent.com/stackql/stackql-deploy-rust/main/template-hub/";
pub mod aws_templates {
pub const RESOURCE_TEMPLATE: &str =
include_str!("../template-hub/aws/starter/resources/example_vpc.iql.template");
pub const MANIFEST_TEMPLATE: &str =
include_str!("../template-hub/aws/starter/stackql_manifest.yml.template");
pub const README_TEMPLATE: &str =
include_str!("../template-hub/aws/starter/README.md.template");
}
pub mod azure_templates {
pub const RESOURCE_TEMPLATE: &str =
include_str!("../template-hub/azure/starter/resources/example_res_grp.iql.template");
pub const MANIFEST_TEMPLATE: &str =
include_str!("../template-hub/azure/starter/stackql_manifest.yml.template");
pub const README_TEMPLATE: &str =
include_str!("../template-hub/azure/starter/README.md.template");
}
pub mod google_templates {
pub const RESOURCE_TEMPLATE: &str =
include_str!("../template-hub/google/starter/resources/example_vpc.iql.template");
pub const MANIFEST_TEMPLATE: &str =
include_str!("../template-hub/google/starter/stackql_manifest.yml.template");
pub const README_TEMPLATE: &str =
include_str!("../template-hub/google/starter/README.md.template");
}