File tree Expand file tree Collapse file tree
packages/workshop-app/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { spawn } from 'child_process'
44import crypto from 'crypto'
55import fs from 'fs'
66import http from 'http'
7+ import os from 'os'
78import path from 'path'
89import { fileURLToPath } from 'url'
910import 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
291296function 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}
You can’t perform that action at this time.
0 commit comments