Skip to content

Commit

Permalink
fix(tasks): add badge to prompt message
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 18, 2021
1 parent 048ca7d commit 3de514a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tasks/stdio/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ export function prompt(options: PromptOptions | Empty, task: Task): Task.Async {
let response: null | string = null;
while (!(await isCancelled(ctx))) {
response = await line(
addPrefix(opts.message + ' ', null, 'print', ctx),
addPrefix(
getBadge('prompt') + ' ' + opts.message + ' ',
null,
'print',
ctx
),
opts.timeout,
ctx
).then((res) => {
Expand Down

0 comments on commit 3de514a

Please sign in to comment.