Skip to main content
Go to Latest
File
import { colors, parseArgs } from './src/install/install.deps.ts';import { Command } from './src/install/commands/Command.ts';import { HelpCommand } from './src/install/commands/HelpCommand.ts';import { InstallCommand } from './src/install/commands/InstallCommand.ts';
export const fathymGreen: colors.Rgb = { r: 74, g: 145, b: 142 };
// TODO(mcgear): Check that minimum deno version is met
export type EaCRuntimeInstallerFlags = { docker?: boolean, force?: boolean, help?: boolean, preact?: boolean, tailwind?: boolean, vscode?: boolean,};
const flags: EaCRuntimeInstallerFlags = parseArgs(Deno.args, { boolean: ['docker', 'force', 'help', 'preact', 'tailwind', 'vscode'], default: { docker: true, force: undefined, preact: true, tailwind: true, vscode: true, }, alias: { force: 'f', help: 'h', },});
console.log();console.log(colors.bgRgb24(' 🐙 EaC Runtime Installer ', fathymGreen));console.log();
let command: Command | undefined;
if (flags.help) { command = new HelpCommand();} else { command = new InstallCommand(flags);}
if (command) { await command.Run();}
Deno.exit(0);