(yargs: Argv)
| 28 | const describe = 'update a device preference' |
| 29 | |
| 30 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 31 | inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 32 | .positional('id', { describe: 'device preference id', type: 'string' }) |
| 33 | .example([ |
| 34 | [ |
| 35 | '$0 devicepreferences:update --input dp.json', |
| 36 | 'select a device preference from a list and update it with data from dp.json', |
| 37 | ], |
| 38 | [ |
| 39 | '$0 devicepreferences:update --input dp.yaml motionSensitivity', |
| 40 | 'update specified device preference with data from dp.yaml', |
| 41 | ], |
| 42 | ]) |
| 43 | .epilog(buildEpilog({ command, apiDocs: ['updatePreferenceById'] })) |
| 44 | |
| 45 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 46 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected