Skip to content

Commit

Permalink
Major cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jun 18, 2024
1 parent e75010a commit 0d38da9
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 95 deletions.
10 changes: 5 additions & 5 deletions src/cli/device-protection.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ module.exports = ({ commandProcessor, root }) => {
}
});

commandProcessor.createCommand(deviceProtection, 'disable', 'Disables device protection (temporary or permanent)', {
commandProcessor.createCommand(deviceProtection, 'disable', 'Disables device protection', {
options: {
'open': {
boolean: true,
description: 'Unlocks a protected device and makes it an Open device'
description: 'Turns a protected device an unprotected/open device'
}
},
handler: (args) => {
const DeviceProtectionCommands = require('../cmd/device-protection');
return new DeviceProtectionCommands(args).disableProtection(args);
},
examples: {
'$0 $command': 'Device is temporarily unprotected',
'$0 $command --open': '[TBD] Device becomes an Open device'
'$0 $command': 'Turns a protected device to being protected in service mode',
'$0 $command --open': 'Turns a protected device back to an unprotected/open device'
}
});

Expand All @@ -41,7 +41,7 @@ module.exports = ({ commandProcessor, root }) => {
return new DeviceProtectionCommands().enableProtection(args);
},
examples: {
'$0 $command': 'Enables device protection temporarily'
'$0 $command': 'Enables device protection'
}
});

Expand Down
Loading

0 comments on commit 0d38da9

Please sign in to comment.