feat: work on completing the lua scripting capabilities
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
14
lib/mix/tasks/bds.api_docs.ex
Normal file
14
lib/mix/tasks/bds.api_docs.ex
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule Mix.Tasks.Bds.ApiDocs do
|
||||
use Mix.Task
|
||||
|
||||
@shortdoc "Generate API.md from the Lua scripting contract"
|
||||
|
||||
@impl Mix.Task
|
||||
def run(_args) do
|
||||
Mix.Task.run("app.start")
|
||||
|
||||
path = Path.expand("API.md", File.cwd!())
|
||||
File.write!(path, BDS.Scripting.ApiDocs.render())
|
||||
Mix.shell().info("Wrote #{path}")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user