(yargs: Argv)
| 29 | const describe = 'publish a device profile (published profiles cannot be modified)' |
| 30 | |
| 31 | export const builder = (yargs: Argv): Argv<CommandArgs> => |
| 32 | formatAndWriteItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 33 | .positional('id', { describe: 'device profile id', type: 'string' }) |
| 34 | .example([ |
| 35 | [ |
| 36 | '$0 deviceprofiles:publish', |
| 37 | 'prompt for a device profile and publish it', |
| 38 | ], |
| 39 | [ |
| 40 | '$0 deviceprofiles:publish aaddcbec-e8ce-4227-b9b2-f4f22f87f2ec', |
| 41 | 'publish the specified device profile', |
| 42 | ], |
| 43 | ]) |
| 44 | .epilog(buildEpilog({ command, apiDocs: ['getDeviceProfile', 'getDeviceConfiguration'] })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected