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

Function listModes

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

Source from the content-addressed store, hash-verified

273}
274
275export 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
290export async function listModels(options: BaseListOptions): Promise<void> {
291 const format = parseFormat(options.format)

Callers 1

index.tsFile · 0.85

Calls 5

parseFormatFunction · 0.85
requestModesFunction · 0.85
outputJsonFunction · 0.85
outputModesTextFunction · 0.85

Tested by

no test coverage detected