You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor argument processing code to be more in line with rest of SwiftPlate
- Use guard statement to validate array index.
- Use initializer for Arguments instead of global function.
- Fix bug where camel cased argument identifiers where compared against lowercased ones.
- Update some variable names & code style.
letprojectName= templateFromArguments.projectName ??askForRequiredInfo(question:"📛 What's the name of your project?", errorMessage:"Project name cannot be empty")
249
-
letauthorName= templateFromArguments.authorName ??askForRequiredInfo(question:"👶 What's your name?", errorMessage:"Your name cannot be empty")
250
-
letauthorEmail= templateFromArguments.authorEmail ??askForOptionalInfo(question:"📫 What's your email address (for Podspec)?")
251
-
letgitHubURL= templateFromArguments.githubURL ??askForOptionalInfo(question:"🌍 Any GitHub URL that you'll be hosting this project at (for Podspec)?")
252
-
letorganizationName= templateFromArguments.organizationName ??askForOptionalInfo(question:"🏢 What's your organization name?")
0 commit comments