Strengthened typechecking and assertions. Added types for modules

This commit is contained in:
2025-09-23 23:22:41 -04:00
parent 10d2d6f027
commit 95ff0c5164
4 changed files with 46 additions and 18 deletions
+8 -2
View File
@@ -4,9 +4,15 @@ local stdio = require("@lune/stdio")
local fs = require("@lune/fs")
local types = require("./types")
local cli = {}
export type CLI = {
parseArgs: () -> types.opts,
printUsage: () -> (),
checkOutputFile: (outputFile: string?) -> ()
}
function cli.parseArgs(): types.opts
local cli = {} :: CLI
function cli.parseArgs(): types.opts
local args = process.args
local opts = {
outputFile = nil,