(argv: ArgumentsCamelCase<CommandArgs>)
| 44 | .epilog(buildEpilog({ command, apiDocs: ['getDeviceProfile', 'getDeviceConfiguration'] })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiOrganizationCommand(argv) |
| 48 | |
| 49 | const id = await chooseDeviceProfile(command, argv.id) |
| 50 | |
| 51 | const deviceProfile = await command.client.deviceProfiles.updateStatus(id, DeviceProfileStatus.PUBLISHED) |
| 52 | await formatAndWriteItem(command, { buildTableOutput: data => buildTableOutput(command.tableGenerator, data) }, deviceProfile) |
| 53 | } |
| 54 | |
| 55 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 56 | export default cmd |
nothing calls this directly
no test coverage detected