Convert lib/actions/device.coffee to javascript

Change-type: patch
This commit is contained in:
Pagan Gazzard
2020-04-25 11:47:23 +01:00
committed by Balena CI
parent 00ce3ab751
commit 0cfa1a0dfb
6 changed files with 544 additions and 445 deletions

View File

@ -94,7 +94,7 @@ export async function sudo(
await executeWithPrivileges(command, stderr, isCLIcmd);
}
export function runCommand(command: string): Bluebird<void> {
export function runCommand<T>(command: string): Bluebird<T> {
const capitano = require('capitano');
return Bluebird.fromCallback(resolver => capitano.run(command, resolver));
}