mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-20 08:43:44 +00:00
Convert lib/actions/device.coffee to javascript
Change-type: patch
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user