style: 💄 Update code style

This commit is contained in:
viarotel 2023-11-14 10:56:00 +08:00
parent d3afc4ba62
commit 76f888baf6
2 changed files with 7 additions and 0 deletions

View File

@ -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) => {

View File

@ -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) => {