1pub enum ExitCode {
2 Success = 0,
3 EnvVarNotFound = 1,
4 InvalidDir = 2,
5 FileReadError = 3,
6 SvgConversionError = 4,
7 FileWriteError = 5,
8 JsonSerializeError = 6,
9 UnexpectedError = 7,
10}
11
12impl From<ExitCode> for i32 {
13 fn from(code: ExitCode) -> Self {
14 code as i32
15 }
16}
17
18pub const GBF_SUITE_INPUT_DIR_ENV_VAR: &str = "GBF_SUITE_DIR";
19pub const GBF_SUITE_OUTPUT_ENV_VAR: &str = "GBF_OUTPUT_DIR";
20
21pub const GBF_AWS_BUCKET: &str = "gbf-rs";
23pub const GBF_AWS_DYNAMO_VERSION_TABLE: &str = "gbf-rs-version";
24pub const GBF_AWS_DYNAMO_GRAPHVIZ_TABLE: &str = "gbf-rs-graphviz";
25pub const GBF_AWS_DYNAMO_MODULE_TABLE: &str = "gbf-rs-module";
26pub const GBF_AWS_DYNAMO_FUNCTION_TABLE: &str = "gbf-rs-function";
27pub const GBF_AWS_DYNAMO_FUNCTION_ERROR_TABLE: &str = "gbf-rs-function-error";
28pub const GBF_AWS_REGION: &str = "us-east-1";