# all files / src/prompts/ setup.js

100% Statements 10/10
100% Branches 4/4
100% Functions 2/2
100% Lines 6/6
1 branch Ignored

    1
    2
    3
    4
    5
    6
    7
    81×

    1×
    3×
    3×
    3×

     import chalk from 'chalk';

    export const setupPrompt = (promptType, prompt) => {
      prompt.message = chalk.green(`${promptType}: `);
      prompt.delimiter = '';
      prompt.start();
    };