MCPcopy
hub / github.com/Effect-TS/effect / renderWizardArgs

Function renderWizardArgs

packages/cli/src/internal/cliApp.ts:348–364  ·  view source on GitHub ↗
(args: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

346}
347
348const renderWizardArgs = (args: ReadonlyArray<string>) => {
349 const params = pipe(
350 Arr.filter(args, (param) => param.length > 0),
351 Arr.join(" ")
352 )
353 const executeMsg = InternalSpan.text(
354 "You may now execute your command directly with the following options and arguments:"
355 )
356 return InternalHelpDoc.blocks([
357 InternalHelpDoc.p(InternalSpan.strong(InternalSpan.code("Wizard Mode Complete!"))),
358 InternalHelpDoc.p(executeMsg),
359 InternalHelpDoc.p(InternalSpan.concat(
360 InternalSpan.text(" "),
361 InternalSpan.highlight(params, Color.cyan)
362 ))
363 ])
364}
365
366const isLogLevelArg = (arg?: string) => {
367 return arg && (arg === "--log-level" || arg.startsWith("--log-level="))

Callers 1

handleBuiltInOptionFunction · 0.85

Calls 3

pipeFunction · 0.70
joinMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…