(options: BaseListOptions)
| 273 | } |
| 274 | |
| 275 | export async function listModes(options: BaseListOptions): Promise<void> { |
| 276 | const format = parseFormat(options.format) |
| 277 | |
| 278 | await withHostAndSignalHandlers(options, { ephemeral: true }, async (host) => { |
| 279 | const modes = await requestModes(host) |
| 280 | |
| 281 | if (format === "json") { |
| 282 | outputJson({ modes }) |
| 283 | return |
| 284 | } |
| 285 | |
| 286 | outputModesText(modes) |
| 287 | }) |
| 288 | } |
| 289 | |
| 290 | export async function listModels(options: BaseListOptions): Promise<void> { |
| 291 | const format = parseFormat(options.format) |
no test coverage detected