mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-11 12:56:03 +03:00
Add option to generate only plist files
Add changelog entry Update CHANGELOG.md Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com> Update to new flag PropertyWrapper
This commit is contained in:
parent
058e084e5b
commit
0c6dd1401a
@ -4,6 +4,7 @@
|
||||
|
||||
#### Added
|
||||
- Support for language and region settings on a target basis [#728](https://github.com/yonaskolb/XcodeGen/pull/728) @FranzBusch
|
||||
- Added option to generate only Info.plist files with `--only-plists` [#739](https://github.com/yonaskolb/XcodeGen/pull/739) @namolnad
|
||||
|
||||
#### Fixed
|
||||
- Fixed resolving a relative path for `projectReference.path` [#740](https://github.com/yonaskolb/XcodeGen/pull/740) @kateinoigakukun
|
||||
|
@ -19,6 +19,9 @@ class GenerateCommand: ProjectCommand {
|
||||
@Key("-p", "--project", description: "The path to the directory where the project should be generated. Defaults to the directory the spec is in. The filename is defined in the project spec")
|
||||
var projectDirectory: Path?
|
||||
|
||||
@Flag("--only-plists", description: "Generate only plist files")
|
||||
var onlyPlists: Bool
|
||||
|
||||
init(version: Version) {
|
||||
super.init(version: version,
|
||||
name: "generate",
|
||||
@ -81,6 +84,9 @@ class GenerateCommand: ProjectCommand {
|
||||
let fileWriter = FileWriter(project: project)
|
||||
do {
|
||||
try fileWriter.writePlists()
|
||||
if onlyPlists {
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
throw GenerationError.writingError(error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user