1.1.2Updated a month ago
import { join } from "node:path";
import type { I_CommandCode } from "../command_runner.ts";
import { Command } from "./enum.ts";

export const install_command = {
  command: Command.install,
  aliases: [],
  description: 'Installs viapak locally as a CLI',
  help_text: [],
  execute: async ({ options }) => {
    console.log();
    console.log(`'viapak install' is still WIP`);
    console.log();
    Deno.exit(0);

    switch(Deno.build.os) {
      case 'darwin': {
        break;
      }
      case 'windows': {
        const installed_environments = await import('./install_data/windows.ts');

        console.log(installed_environments);

        break;
      }
      case 'linux': {
        break;
      }
    }
  }
} as I_CommandCode;