file import * as config from "./Config" ; export function getCommand ( command ) { if ( ! config . remoteEnabled ) { return command ; } if ( config . remoteType === "ssh" ) { return "ssh" ; } else if ( config . remoteType === "docker" ) { return "docker" ; } else { return command ; } } export function getArgs ( command , args ) { if ( ! config . remoteEnabled ) { return args ; } if ( config . remoteType === "ssh" ) { return [ ... config . sshArgs , config . sshHost , command , ... args ] ; } else if ( config . remoteType === "docker" ) { return [ "exec" , "-i" , config . dockerContainerName , command , ... args ] ; } else { return args ; } }