import { Component , ComponentFactoryResolver } from '@angular/core' ; import { ConsoleService , ConsoleTypes } from './../shared/services/console.service' ; import { AbstractWindowsComponent } from '../shared/components/abstract.windows.component' ; import { TranslateService } from '@ngx-translate/core' ; import { PortalService } from '../../../shared/services/portal.service' ; @ Component ( { selector : 'app-powershell' , templateUrl : '././../shared/templates/abstract.console.component.html' , styleUrls : [ './../console.component.scss' , './powershell.component.scss' ] , providers : [ ] , } ) export class PowershellComponent extends AbstractWindowsComponent { constructor ( componentFactoryResolver , public consoleService , translateService , portalService ) { super ( componentFactoryResolver , consoleService , translateService , portalService ) ; this . consoleType = ConsoleTypes . PS ; } protected getTabKeyCommand ( ) { return 'Get-ChildItem -name' ; } protected getCommandPrefix ( ) { return 'powershell ' ; } /**
     * Get the left-hand-side text for the console
     */ protected getConsoleLeft ( ) { return `PS ${ this . dir }>` ; } }