import * as chalk from 'chalk'; import {command, help, namespace} from 'oo-cli'; import {BaseBuildCommand} from './BaseBuildCommand'; import {die} from '../../lib/die'; import {formatError} from '../../lib/formatError'; @namespace('app') export class ValidateCommand extends BaseBuildCommand { @command @help('Validate an app locally') public async validate() { try { await this.run(false, false, false); console.log(chalk.gray(`\nUse ${chalk.cyan('ocp app prepare')} to upload and build your app\n`)); } catch (e: any) { die(formatError(e)); } } }