(argv: ArgumentsCamelCase<CommandArgs>)
| 40 | .epilog(buildEpilog({ command, apiDocs: ['updateAppSettings'] })) |
| 41 | |
| 42 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 43 | const command = await apiCommand(argv) |
| 44 | const appId = await chooseApp(command, argv.id) |
| 45 | await inputAndOutputItem( |
| 46 | command, |
| 47 | { buildTableOutput: (data: AppSettingsResponse) => buildTableOutput(command.tableGenerator, data) }, |
| 48 | (_, data: AppSettingsRequest) => command.client.apps.updateSettings(appId, data), |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 53 | export default cmd |
nothing calls this directly
no test coverage detected