SwiftMarkupGen

Swift Documentation Markup Template Generator

40
2
Swift

SwiftMarkupGen

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.

Build Status

Requirements:

Installation:

$ make install

Usage:

$ MarkupGen-bin "public func hello(cool a: Int, abc b: FooType) throws -> FooType {"
/// hello(cool:abc:)
///
/// - Parameters:
///     - cool:
///     - abc:
///
/// - Throws:
///
/// - Returns:

Build:

$ make
or
$ swift build -Xlinker -undefined -Xlinker dynamic_lookup

License

MIT