@@ -213,7 +213,8 @@ async function startCommand() {
213213 spawnChild ( )
214214
215215 if ( process . stdin . isTTY && ! isDeployed ) {
216- printSupportedKeys ( )
216+ console . log ( chalk . bold . cyan ( 'Supported keys:' ) )
217+ console . log ( supportedKeys . join ( '\n\t' ) )
217218 process . stdin . setRawMode ( true )
218219 process . stdin . resume ( )
219220 process . stdin . setEncoding ( 'utf8' )
@@ -316,16 +317,13 @@ async function killChild(child: ChildProcess | null): Promise<void> {
316317 } )
317318}
318319
319- function printSupportedKeys ( ) {
320- console . log ( `
321- ${ chalk . bold . cyan ( 'Supported keys:' ) }
322- ${ chalk . blue ( 'o' ) } - open browser
323- ${ chalk . green ( 'u' ) } - update repo
324- ${ chalk . magenta ( 'r' ) } - restart
325- ${ chalk . cyan ( 'k' ) } - Kody kudos 🐨
326- ${ chalk . gray ( 'q' ) } (or ${ chalk . gray ( 'Ctrl+C' ) } ) - exit
327- ` )
328- }
320+ const supportedKeys = [
321+ `${ chalk . blue ( 'o' ) } - open workshop app` ,
322+ `${ chalk . green ( 'u' ) } - update workshop` ,
323+ `${ chalk . magenta ( 'r' ) } - restart workshop app` ,
324+ `${ chalk . cyan ( 'k' ) } - Kody kudos 🐨` ,
325+ `${ chalk . gray ( 'q' ) } - exit (or ${ chalk . gray ( 'Ctrl+C' ) } )` ,
326+ ]
329327
330328function findWorkshopAppDir ( ) : string | null {
331329 try {
@@ -387,11 +385,7 @@ const cli = yargs(hideBin(process.argv))
387385 . epilogue (
388386 `
389387${ chalk . bold ( 'Interactive keys (available during start command):' ) }
390- ${ chalk . blue ( 'o' ) } - open browser
391- ${ chalk . green ( 'u' ) } - update repo
392- ${ chalk . magenta ( 'r' ) } - restart app
393- ${ chalk . cyan ( 'k' ) } - Kody kudos 🐨
394- ${ chalk . gray ( 'q' ) } - quit (or Ctrl+C)
388+ ${ supportedKeys . join ( '\n\t' ) }
395389
396390For more information, visit: https://github.com/epicweb-dev/epicshop
397391` ,
0 commit comments