Skip to content

Commit

Permalink
Update tools/generators/xcschemes/src/Generator/AutogenerationConfigA…
Browse files Browse the repository at this point in the history
…rguments.swift

Co-authored-by: Brentley Jones <[email protected]>
Signed-off-by: Nicholas Long <[email protected]>
  • Loading branch information
longsview and brentleyjones authored Nov 12, 2024
1 parent 6ef0508 commit a559c57
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ struct AutogenerationConfigArguments {
var rawArgs = ArraySlice(try await url.allLines.collect())

let appLanguage = try rawArgs.consumeArg(
"app_language",
"app-language",
as: String?.self,
in: url
)
let appRegion = try rawArgs.consumeArg(
"app_region",
"app-region",
as: String?.self,
in: url
)
let schemeNameExcludePatterns = try rawArgs.consumeArgs(
Expand All @@ -25,8 +27,8 @@ struct AutogenerationConfigArguments {
)

return AutogenerationConfigArguments(
appLanguage: !appLanguage.isEmpty ? appLanguage : nil,
appRegion: !appRegion.isEmpty ? appRegion : nil,
appLanguage: appLanguage,
appRegion: appRegion,
schemeNameExcludePatterns: schemeNameExcludePatterns
)
}
Expand Down

0 comments on commit a559c57

Please sign in to comment.