From 1e2fb2a2115f85c14edf338e7a6cfff71b32a8d0 Mon Sep 17 00:00:00 2001 From: Mark S Date: Tue, 25 Oct 2022 14:56:00 -0400 Subject: [PATCH] feat: Add 'QE' as recognized environment identifier --- src/types.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index a8ca1da..19075ee 100644 --- a/src/types.rs +++ b/src/types.rs @@ -25,6 +25,7 @@ pub(crate) type ParsedPinnConfig = BTreeMap; #[derive(Eq, Copy, Clone, Debug, PartialEq)] pub(crate) enum EnvName { QA, + QE, Dev, Prod, Test, @@ -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, @@ -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",