(yargs: Argv)
| 35 | const describe = 'update a device profile' |
| 36 | |
| 37 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 38 | inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 39 | .positional('id-or-index', { describe: 'device profile id or number from list', type: 'string' }) |
| 40 | .example([ |
| 41 | [ |
| 42 | '$0 deviceprofiles:update --input my-profile.yaml', |
| 43 | 'prompt for a device profile and update it using the data in my-profile.yaml', |
| 44 | ], |
| 45 | [ |
| 46 | '$0 deviceprofiles:update --input my-profile.json 204cf401-bb4b-4dfc-91ec-729f5d8075ef', |
| 47 | 'update the specified device profile using the data in my-profile.json', |
| 48 | ], |
| 49 | ]) |
| 50 | .epilog(buildEpilog({ command, apiDocs: 'updateDeviceProfile' })) |
| 51 | |
| 52 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 53 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected