Created
September 9, 2020 14:58
-
-
Save fortmarek/4410ac86ef94974803cf4959789c260d to your computer and use it in GitHub Desktop.
This file contains 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 CodingKeys: String, CodingKey { | |
case template | |
} | |
init(from decoder: Decoder) throws { | |
let container = try decoder.container(keyedBy: CodingKeys.self) | |
template = try container.decode(Argument<String>.self, forKey: .template).wrappedValue | |
} | |
// Necessary for conforming ParsableArguments | |
init() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment