ryu1kn/vscode-edit-with-shell

View on GitHub
src/lib/commands/run-input.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {ShellCommandService} from '../shell-command-service';
import {CommandReader} from '../command-reader';
import {HistoryStore} from '../history-store';
import {Workspace} from '../adapters/workspace';
import {RunCommand} from './run';

export class RunInputCommand extends RunCommand {
    constructor(shellCommandService: ShellCommandService,
                private readonly commandReader: CommandReader,
                historyStore: HistoryStore,
                workspaceAdapter: Workspace) {
        super(shellCommandService, historyStore, workspaceAdapter);
    }

    protected getCommandText(): Promise<string|undefined> {
        return this.commandReader.read();
    }
}