JohnSundell / SwiftPlate

Easily generate cross platform Swift framework projects from the command line
MIT License
1.77k stars 88 forks source link

Add feature where users can choose the schemes to generate #60

Open macabeus opened 6 years ago

macabeus commented 6 years ago

Will be good a feature where the users could choose the schemes to be generated in the xcode project.

One solution is by command line argument. For example:

swift swiftplate/main.swift  # create all schemes (iOS, macOS, watchOS, tvOS)
swift swiftplate/main.swift  --ios # create schemes only for iOS
swift swiftplate/main.swift  --ios --tvos # create schemes only for iOS and tvOS
ythecombinator commented 6 years ago

I do agree it'd be nice to be able to choose which schemes I want to be scaffolded but, instead of using multiple flags for multiple schemes I'd rather just pass an array of them–e.g.

swift swiftplate/main.swift  -s [iOS, macOS, watchOS]
swift swiftplate/main.swift  --schemes [iOS]