Skip to content

Commit 973958b

Browse files
committed
feat(welcome): add personalized welcome message and update key descriptions
1 parent 734c00a commit 973958b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

packages/workshop-app/bin/epicshop.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { spawn } from 'child_process'
44
import crypto from 'crypto'
55
import fs from 'fs'
66
import http from 'http'
7+
import os from 'os'
78
import path from 'path'
89
import { fileURLToPath } from 'url'
910
import chalk from 'chalk'
@@ -215,6 +216,10 @@ async function start() {
215216
})
216217
}
217218

219+
console.log(
220+
`🐨 Welcome to the workshop, ${chalk.bold.italic(os.userInfo().username)}!`,
221+
)
222+
218223
spawnChild()
219224

220225
if (process.stdin.isTTY && !isDeployed) {
@@ -290,10 +295,9 @@ async function killChild(child) {
290295

291296
function printSupportedKeys() {
292297
console.log(chalk.bold.cyan('\nSupported keys:'))
293-
console.log(` ${chalk.green('u')} - update repo`)
294298
console.log(` ${chalk.blue('o')} - open browser`)
295-
console.log(` ${chalk.yellow('q')} - exit`)
299+
console.log(` ${chalk.green('u')} - update repo`)
296300
console.log(` ${chalk.magenta('r')} - restart`)
297-
console.log(` ${chalk.cyan('k')} - Kody the Koala encouragement 🐨`)
298-
console.log(` ${chalk.gray('Ctrl+C')} - exit`)
301+
console.log(` ${chalk.cyan('k')} - Kody kudos 🐨`)
302+
console.log(` ${chalk.gray('q')} (or ${chalk.gray('Ctrl+C')}) - exit`)
299303
}

0 commit comments

Comments
 (0)