swc/crates/swc_bundler/tests/.cache/deno/a0fc45eac1469f47ed6e2bbaad4b323e856fac7b.ts

30 lines
673 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/dnit@dnit-v1.11.0/main.ts
import { setupLogging, log, flags } 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();