(yargs: Argv)
| 34 | const describe = 'list profiles defined in config file' |
| 35 | |
| 36 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 37 | outputItemOrListBuilder(smartThingsCommandBuilder(yargs)) |
| 38 | .positional('name', { describe: 'profile name for detail view', type: 'string' }) |
| 39 | .option('verbose', |
| 40 | { alias: 'v', describe: 'include additional data in output', type: 'boolean', default: false }) |
| 41 | .example([ |
| 42 | ['$0 config', 'summarize profiles in config file'], |
| 43 | ['$0 config my-org-1', 'provide details for profile named "my-org-1"'], |
| 44 | ]) |
| 45 | .epilog(buildEpilog({ command })) |
| 46 | |
| 47 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 48 | const command = await smartThingsCommand(argv) |
nothing calls this directly
no test coverage detected