Skip to content

Commit

Permalink
style: 💄 Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 14, 2023
1 parent d3afc4b commit 76f888b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions electron/exposes/adbkit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,16 @@ const spawnShell = async (command, { stdout, stderr } = {}) => {
}

const getDevices = async () => client.listDevicesWithPaths()

const deviceShell = async (id, command) => {
const res = await client.getDevice(id).shell(command).then(Adb.util.readAll)
return res.toString()
}

const kill = async (...params) => client.kill(...params)

const connect = async (...params) => client.connect(...params)

const disconnect = async (...params) => client.disconnect(...params)

const getDeviceIP = async (id) => {
Expand Down
3 changes: 3 additions & 0 deletions electron/exposes/gnirehtet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ const shell = async (command, { debug = false, stdout, stderr } = {}) => {
}

const install = deviceId => shell(`install "${deviceId}"`)

const start = deviceId => shell(`start "${deviceId}"`)

const stop = deviceId => shell(`stop "${deviceId}"`)

const tunnel = deviceId => shell(`tunnel "${deviceId}"`)

const installed = async (deviceId) => {
Expand Down

0 comments on commit 76f888b

Please sign in to comment.