mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
13 lines
463 B
JavaScript
13 lines
463 B
JavaScript
const { log } = require('../internals');
|
|
const DeviceRegistry = require('../src/devices/allocation/DeviceRegistry');
|
|
|
|
module.exports.command = 'reset-lock-file';
|
|
module.exports.desc = 'Resets Detox lock file completely - all devices are marked as available after that.';
|
|
|
|
module.exports.handler = async function resetLockFile() {
|
|
const registry = new DeviceRegistry();
|
|
await registry.reset();
|
|
|
|
log.info(`Cleaned lock file at: ${registry.lockFilePath}`);
|
|
};
|