Skip to main content
Module

x/dnit/main.ts

dnit: typescript (deno) task executor
Latest
File
import { flags, log, setupLogging } from "./mod.ts";import { launch } from "./launch.ts";import { version } from "./version.ts";
export async function main() { const args = flags.parse(Deno.args); if (args["version"] === true) { console.log(`dnit ${version}`); Deno.exit(0); }
await setupLogging(); const internalLogger = log.getLogger("internal");
if (args["verbose"] !== undefined) { internalLogger.levelName = "INFO"; }
internalLogger.info(`starting dnit launch using version: ${version}`);
launch(internalLogger).then((st) => { Deno.exit(st.code); });}
main();