Skip to content

Logger: add prompt/stdin supportΒ #570

@paularmstrong

Description

@paularmstrong

Problem:

  • Currently using inquirer / @inquirer/prompts, however, the oneRepo logger is specifically designed for understandable readability and output.
  • It requires manually calling logger.pause() and logger.unpause() before and after requesting prompts (respectively).
  • Poor control over output due to inquirer's design decisions that are great for most, but don't fit in with the oneRepo logger style

Solution:

TBD API

logger.createPrompt(question: string, options: { type: '…', … })
const input = await logger.prompt({ 
  prompt: string,
  type: 'input' | 'checkbox' | 'confirm',
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions