import { red, blue, yellow, cyanBright, bold } from './colors.mjs'; import * as commander from 'commander'; import fs from 'node:fs'; import inquirer from 'inquirer'; import path from 'node:path'; import process from 'node:process'; import { createCodeSandbox, ignore } from '../.codesandbox/deploy.mjs'; import { startSandbox } from '../.codesandbox/start.mjs'; import { wd } from './dirname.mjs'; const program = new commander.Command() .showHelpAfterError() .allowUnknownOption(false) .allowExcessArguments(false); const codesandboxTemplatesDir = path.resolve(wd, '.codesandbox', 'templates'); const sandbox = program.command('sandbox').description('sandbox commands'); const templates = fs.readdirSync(codesandboxTemplatesDir); program .command('start') .description('start a sandbox app') .addArgument( new commander.Argument('