feat(release,build,tests): add automated multi-platform release pipeline and align runtime, model, and test updates
This commit is contained in:
15
mod.ts
15
mod.ts
@@ -7,5 +7,16 @@
|
||||
|
||||
import { runCli } from './ts/cli.ts';
|
||||
|
||||
// Run CLI
|
||||
await runCli();
|
||||
if (import.meta.main) {
|
||||
try {
|
||||
await runCli();
|
||||
} catch (error) {
|
||||
const debugMode = Deno.args.includes('--debug');
|
||||
if (debugMode) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.error(`Error: ${error instanceof Error ? error.message : String(error)}`);
|
||||
}
|
||||
Deno.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user