Skip to content

Commit

Permalink
refactor: update desc when pass --diff option
Browse files Browse the repository at this point in the history
show `diffed files` when pass --diff options, otherwise show `staged files`
  • Loading branch information
wyntau committed Nov 9, 2022
1 parent 17c51af commit 5c55b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export const runAll = async (
enabled: hasPartiallyStagedFiles,
},
{
title: `Running tasks for staged files...`,
title: `Running tasks for ${diff ? 'changed' : 'staged'} files...`,
task: (ctx, task) => task.newListr(listrTasks, { concurrent }),
skip: () => listrTasks.every((task) => task.skip()),
},
Expand Down

0 comments on commit 5c55b84

Please sign in to comment.