We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7756260 commit 36d4accCopy full SHA for 36d4acc
1 file changed
src/messages.ts
@@ -48,10 +48,15 @@ export const saySetupIsRunning = (preferences: Preferences) => {
48
}
49
50
const sayCommand = (command: string, comment = "") => {
51
+ const coloredCommand = chalk.blue(`> ${command}`)
52
if (comment.length > 0) {
- console.log(chalk.blue(`> ${command}`).padEnd(32, " "), chalk.gray(`// ${comment}`))
53
+ const coloredComment = chalk.gray(`// ${comment}`)
54
+
55
+ // pad command to have unified length for all logging output
56
+ const assembledLine = `${coloredCommand.padEnd(40, " ")} ${coloredComment}`
57
+ console.log(assembledLine)
58
} else {
- console.log(chalk.blue(`> ${command}`))
59
+ console.log(coloredCommand)
60
61
62
0 commit comments