All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bsp.codegen.docs.Codegen.scala Maven / Gradle / Ivy

The newest version!
package bsp.codegen.docs

import bsp.codegen.ModelLoader
import bsp.codegen.ir.SmithyToIR

object Codegen {
  def docs(namespace: String): String = {
    val model = ModelLoader.loadModel()
    val docTree = new SmithyToIR(model).docTree(namespace)
    MarkdownRenderer.render(docTree)
  }

  def printDocs(namespace: String): Unit = println(docs(namespace))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy