MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / listCommands

Function listCommands

apps/cli/src/commands/cli/list.ts:260–273  ·  view source on GitHub ↗
(options: BaseListOptions)

Source from the content-addressed store, hash-verified

258}
259
260export 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
275export async function listModes(options: BaseListOptions): Promise<void> {
276 const format = parseFormat(options.format)

Callers 1

index.tsFile · 0.85

Calls 5

parseFormatFunction · 0.85
requestCommandsFunction · 0.85
outputJsonFunction · 0.85
outputCommandsTextFunction · 0.85

Tested by

no test coverage detected