UNPKG

@athenna/core

Version:

One foundation for multiple applications.

23 lines (22 loc) 703 B
/** * @athenna/core * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Path, Module } from '@athenna/common'; import { BaseCommand } from '@athenna/artisan'; export class ReplCommand extends BaseCommand { static signature() { return 'repl'; } static description() { return 'Start a new REPL session with Athenna application loaded.'; } async handle() { const entrypoint = Config.get('rc.commands.repl.entrypoint', Path.bin(`repl.${Path.ext()}`)); await Module.resolve(entrypoint, Config.get('rc.parentURL')); } }