You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
462 B

// @flow
import { createCommand, Command } from 'helpers/ipc'
import { fromPromise } from 'rxjs/observable/fromPromise'
import { withDevice } from 'helpers/deviceAccess'
import listApps from 'helpers/apps/listApps'
type Input = {
devicePath: string,
}
type Result = *
const cmd: Command<Input, Result> = createCommand('devices', 'listApps', ({ devicePath }) =>
fromPromise(withDevice(devicePath)(transport => listApps(transport))),
)
export default cmd