import * as observableProcess from "observable-process" ; /** CurrentCommand provides global access to the currently running console command. */ export class CurrentCommand { static instance ( ) { if ( ! instance ) { throw new Error ( "no instance" ) ; } return instance ; } static set ( process ) { instance = process ; } } let instance = null ;