Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Generator {
- static func run(targets: [Object]) {
- for target in targets {
- print("## \(target.name) object")
- print("### Description")
- print("")
- print("### Properties")
- print("|Name|Value Type|Required|Description|")
- print("|---|---|---|---|")
- for property in target.properties {
- print("|\(property.name)|\(property.valueType.documentationString)|\(property.required)|\(property.description)|")
- }
- print("")
- print("---")
- print("")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement