(_, data)
| 54 | |
| 55 | const id = await chooseDeviceProfile(command, argv.idOrIndex) |
| 56 | const executeUpdate: ActionFunction<void, DeviceDefinitionRequest, DeviceProfile> = async (_, data) => { |
| 57 | if (data.view) { |
| 58 | return fatalError('Input contains "view" property. Use deviceprofiles:view:update instead.') |
| 59 | } |
| 60 | |
| 61 | return command.client.deviceProfiles.update(id, cleanupForUpdate(data)) |
| 62 | } |
| 63 | await inputAndOutputItem( |
| 64 | command, |
| 65 | { buildTableOutput: data => buildTableOutput(command.tableGenerator, data, { includePreferences: true }) }, |
nothing calls this directly
no test coverage detected