mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-11 12:56:03 +03:00
add: delete markdown renderer function to remove it when it’s false
This commit is contained in:
parent
f9db8c5449
commit
cafbf2dac3
@ -46,6 +46,11 @@ public class FileWriter {
|
||||
try writePlist([:], path: path.string)
|
||||
}
|
||||
|
||||
public func deleteMarkdownRendererPlist() throws {
|
||||
let path = project.defaultProjectPath + ".xcodesamplecode.plist"
|
||||
try path.delete()
|
||||
}
|
||||
|
||||
private func writePlist(_ plist: [String: Any], path: String) throws {
|
||||
let path = project.basePath + path
|
||||
if path.exists, let data: Data = try? path.read(),
|
||||
|
Loading…
Reference in New Issue
Block a user