This directory contains code from Point-Free Episode: Swift Syntax Command Line Tool
Today we finally extract our enum property code generator to a Swift Package Manager library and CLI tool. We’ll also do some next-level snapshot testing: not only will we snapshot-test our generated code, but we’ll leverage the Swift compiler to verify that our snapshot builds.
- Clone repo
cdintoEnumProperties- run
swift package generate-xcodeprojand explore the project file - run
swift run generate-enum-propertiesagainst Swift source code - run
swift testto test the library