(options: BaseListOptions)
| 258 | } |
| 259 | |
| 260 | export async function listCommands(options: BaseListOptions): Promise<void> { |
| 261 | const format = parseFormat(options.format) |
| 262 | |
| 263 | await withHostAndSignalHandlers(options, { ephemeral: true }, async (host) => { |
| 264 | const commands = await requestCommands(host) |
| 265 | |
| 266 | if (format === "json") { |
| 267 | outputJson({ commands }) |
| 268 | return |
| 269 | } |
| 270 | |
| 271 | outputCommandsText(commands) |
| 272 | }) |
| 273 | } |
| 274 | |
| 275 | export async function listModes(options: BaseListOptions): Promise<void> { |
| 276 | const format = parseFormat(options.format) |
no test coverage detected