Swift Documentation Markup Template Generator
SwiftMarkupGen is a swift package to generate swift documentation markup template given a function signature.
It uses sourcekitd.framework
to parse the function signature.
This is useful to write plugins for text editors.
Installation:
$ make install
$ MarkupGen-bin "public func hello(cool a: Int, abc b: FooType) throws -> FooType {"
/// hello(cool:abc:)
///
/// - Parameters:
/// - cool:
/// - abc:
///
/// - Throws:
///
/// - Returns:
$ make
or
$ swift build -Xlinker -undefined -Xlinker dynamic_lookup
MIT