Skip to content

Commit

Permalink
feat: Add 'QE' as recognized environment identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark S committed Oct 25, 2022
1 parent 21476d2 commit 1e2fb2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub(crate) type ParsedPinnConfig = BTreeMap<SQSQueueName, SQSQueueConfig>;
#[derive(Eq, Copy, Clone, Debug, PartialEq)]
pub(crate) enum EnvName {
QA,
QE,
Dev,
Prod,
Test,
Expand All @@ -39,8 +40,9 @@ impl EnvName {
}

match value.unwrap().as_ref().to_uppercase().as_str() {
"QE" => EnvName::QA,
"Q" | "QA" => EnvName::QA,
"L" | "LOCAL" => EnvName::Local,
"Q" | "QA" | "QE" => EnvName::QA,
"T" | "TEST" | "TESTING" => EnvName::Test,
"D" | "DEV" | "DEVELOPMENT" => EnvName::Dev,
"P" | "PROD" | "PRODUCTION" => EnvName::Prod,
Expand All @@ -51,6 +53,7 @@ impl EnvName {
pub fn as_suffix(&self) -> &str {
match self {
EnvName::QA => "qa",
EnvName::QE => "qe",
EnvName::Dev => "dev",
EnvName::Prod => "prod",
EnvName::Test => "test",
Expand Down

0 comments on commit 1e2fb2a

Please sign in to comment.