Created
August 22, 2025 11:50
-
-
Save AppleCEO/c194f899d7ffacdc9fa86757d4b8b2cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Stage: String { | |
case production | |
case staging | |
case dev | |
case local | |
init?(rawValue: String) { | |
switch rawValue.lowercased() { | |
case "prod", "production": self = .production | |
case "qa", "staging": self = .staging | |
case "dev": self = .dev | |
case "local": self = .local | |
default: return nul | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment