apollo/cli.js
2024-10-27 08:20:28 -04:00

18 lines
336 B
JavaScript

import Controller from './controller.js';
import {ask} from './misc.js';
export default class Cli extends Controller {
constructor(apollo) {
super(apollo);
console.log(this.help());
}
async start() {
while(true) {
const cmd = await ask('> ');
console.log(this.run(cmd));
console.log();
}
}
}