MCPcopy Index your code
hub / github.com/desktop/desktop / printSteps

Function printSteps

script/draft-release/run.ts:80–83  ·  view source on GitHub ↗

* adds a number to the beginning of each line and prints them in sequence

(steps: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

78 * adds a number to the beginning of each line and prints them in sequence
79 */
80function printSteps(steps: ReadonlyArray<string>) {
81 console.log("Here's what you should do next:\n")
82 console.log(steps.map((value, index) => `${index + 1}. ${value}`).join('\n'))
83}
84
85export async function run(args: ReadonlyArray<string>): Promise<void> {
86 if (args.length === 0) {

Callers 1

printInstructionsFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected