blob: a5e17659bcaf7b607de751739a2b19a7c7366e75 (
plain) (
tree)
|
|
import Operator from "../Operator";
import TabPresenter from "../../presenters/TabPresenter";
import ConsoleClient from "../../infrastructures/ConsoleClient";
export default class ShowCommandOperator implements Operator {
constructor(
private readonly tabPresenter: TabPresenter,
private readonly consoleClient: ConsoleClient
) {}
async run(): Promise<void> {
const tab = await this.tabPresenter.getCurrent();
return this.consoleClient.showCommand(tab.id as number, "");
}
}
|