22 lines
405 B
TypeScript
22 lines
405 B
TypeScript
|
|
#!/usr/bin/env -S deno run --allow-all
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Onebox - Self-hosted container platform
|
||
|
|
*
|
||
|
|
* Entry point for the Onebox CLI and daemon.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { runCli } from './ts/index.ts';
|
||
|
|
|
||
|
|
if (import.meta.main) {
|
||
|
|
try {
|
||
|
|
await runCli();
|
||
|
|
} catch (error) {
|
||
|
|
console.error(`Error: ${error.message}`);
|
||
|
|
if (Deno.args.includes('--debug')) {
|
||
|
|
console.error(error.stack);
|
||
|
|
}
|
||
|
|
Deno.exit(1);
|
||
|
|
}
|
||
|
|
}
|