blob: e1246e4647a86e41c4312529307d233fbd6187bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import Operator from "../Operator";
import TabPresenter from "../../presenters/TabPresenter";
import ConsoleClient from "../../infrastructures/ConsoleClient";
export default class ShowBufferCommandOperator implements Operator {
constructor(
private readonly tabPresenter: TabPresenter,
private readonly consoleClient: ConsoleClient
) {}
async run(): Promise<void> {
const tab = await this.tabPresenter.getCurrent();
const command = "buffer ";
return this.consoleClient.showCommand(tab.id as number, command);
}
}
|