MCPcopy Create free account
hub / github.com/Effect-TS/effect / renderIntroduction

Function renderIntroduction

packages/effect/src/unstable/cli/internal/wizard.ts:227–237  ·  view source on GitHub ↗
(name: string, version: string, summary: string | undefined)

Source from the content-addressed store, hash-verified

225 }`
226
227export const renderIntroduction = (name: string, version: string, summary: string | undefined): string => {
228 const title = `${Ansi.annotate(name, Ansi.bold, Ansi.cyanBright)} ${Ansi.annotate(`v${version}`, Ansi.white)} ${
229 Ansi.annotate("· Command wizard", Ansi.bold, Ansi.white)
230 }`
231 return [
232 title,
233 ...(summary === undefined || summary.length === 0 ? [] : [summary]),
234 Ansi.annotate("Build a command interactively. Press Ctrl+C to cancel.", Ansi.blackBright),
235 ""
236 ].join("\n")
237}
238
239export const renderCompletion = (commandLine: ReadonlyArray<string>): string =>
240 renderCommandBlock("Command ready", commandLine, Ansi.cyanBright, Ansi.green)

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
annotateMethod · 0.65

Tested by

no test coverage detected