mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-18 17:14:10 +01:00
style: 💄 Update code style
This commit is contained in:
parent
d3afc4ba62
commit
76f888baf6
@ -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) => {
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user