apollo/cli.js

18 lines
336 B
JavaScript
Raw Normal View History

2024-10-27 08:20:28 -04:00
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();
}
}
}