vinicioslc/adb-interface-vscode

View on GitHub
src/domain/console/console-interface/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { execSync, ExecSyncOptions } from 'child_process'
import { IConsoleInterface } from './iconsole-interface'

export class ConsoleInterface implements IConsoleInterface {
  execConsoleSync(command: string, options: ExecSyncOptions = null): Buffer {
    console.log('Executed ', command)
    return execSync(command, options)
  }
  execConsoleStringSync(
    command: string,
    options: ExecSyncOptions = null
  ): string {
    return this.execConsoleSync(command, options).toString()
  }
}