idb kill
Summary: Introduce a new command to allow killing idb Reviewed By: lawrencelomax Differential Revision: D47911709 fbshipit-source-id: 970f1147a177bbcca0bdfa9e9ba970cdc8a914a3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bf96cc2f15
commit
1f63a25027
@@ -494,6 +494,10 @@ export class FlipperServerImpl implements FlipperServer {
|
||||
assertNotNull(this.ios);
|
||||
return this.ios.simctlBridge.launchSimulator(udid);
|
||||
},
|
||||
'ios-idb-kill': async () => {
|
||||
assertNotNull(this.ios);
|
||||
return this.ios.idbKill();
|
||||
},
|
||||
'persist-settings': async (settings) => saveSettings(settings),
|
||||
'persist-launcher-settings': async (settings) =>
|
||||
saveLauncherSettings(settings),
|
||||
|
||||
@@ -225,6 +225,14 @@ export class IOSDeviceManager {
|
||||
console.warn('Failed to determine Xcode version:', e);
|
||||
}
|
||||
}
|
||||
|
||||
async idbKill() {
|
||||
if (!this.idbConfig.idbPath || this.idbConfig.idbPath.length === 0) {
|
||||
return;
|
||||
}
|
||||
const cmd = `${this.idbConfig.idbPath} kill`;
|
||||
await exec(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
function confirmSimulatorAppMatchesThatOfXcodeSelect(
|
||||
|
||||
Reference in New Issue
Block a user