(argv: ArgumentsCamelCase<CommandArgs>)
| 157 | } |
| 158 | |
| 159 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 160 | const command = await apiOrganizationCommand(argv) |
| 161 | |
| 162 | const createDevice = async (_: void, data: VirtualDeviceCreateRequest): Promise<Device> => |
| 163 | command.client.virtualDevices.create(mergeCreateFlagValues(argv, data)) |
| 164 | |
| 165 | await inputAndOutputItem( |
| 166 | command, |
| 167 | { |
| 168 | buildTableOutput: (data: Device) => buildTableOutput(command.tableGenerator, data), |
| 169 | }, |
| 170 | createDevice, userInputProcessor(() => getInputFromUser(command)), |
| 171 | ) |
| 172 | } |
| 173 | |
| 174 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 175 | export default cmd |
nothing calls this directly
no test coverage detected