unity-builder/src/model/cli/remote-client/remote-client-system.ts

16 lines
450 B
TypeScript
Raw Normal View History

2021-12-25 20:05:17 +00:00
import CloudRunnerLogger from '../../cloud-runner/services/cloud-runner-logger';
import System from '../../system';
export class RemoteClientSystem {
public static async Run(command: string) {
try {
const result = await System.run(command);
CloudRunnerLogger.logRemoteCli(`${result}`);
return result;
} catch (error) {
CloudRunnerLogger.logRemoteCli(`[ERROR] (${command}) ${error}`);
throw error;
}
}
}