@@ -73,7 +73,7 @@ export const interpretMenuAction = async (state: AppState): Promise<void> => {
7373 }
7474 const actions = {
7575 about : async ( state : AppState ) : Promise < void > => {
76- await titleScreen ( "Sentry Releaser " ) ;
76+ await titleScreen ( "APP NAME " ) ;
7777 console . log (
7878 boxen ( chalk . yellow ( `Author: ` ) + "YOUR NAME" , blankBoxenStyle )
7979 ) ;
@@ -82,9 +82,33 @@ export const interpretMenuAction = async (state: AppState): Promise<void> => {
8282 await keypress ( ) ;
8383 state . menuActionEmitter . emit ( "actionCompleted" , state ) ;
8484 } ,
85- option1 : ( state : AppState ) : void => process . exit ( ) ,
86- option2 : ( state : AppState ) : void => process . exit ( ) ,
87- option3 : ( state : AppState ) : void => process . exit ( ) ,
85+ option1 : async ( state : AppState ) : Promise < void > => {
86+ await titleScreen ( "APP NAME" ) ;
87+ console . log ( "Option 1 Logic would take place here :)" ) ;
88+ console . log ( "" ) ;
89+
90+ console . log ( "Press any key to return to Main Menu ..." ) ;
91+ await keypress ( ) ;
92+ state . menuActionEmitter . emit ( "actionCompleted" , state ) ;
93+ } ,
94+ option2 : async ( state : AppState ) : Promise < void > => {
95+ await titleScreen ( "APP NAME" ) ;
96+ console . log ( "Option 2 Logic would take place here :)" ) ;
97+ console . log ( "" ) ;
98+
99+ console . log ( "Press any key to return to Main Menu ..." ) ;
100+ await keypress ( ) ;
101+ state . menuActionEmitter . emit ( "actionCompleted" , state ) ;
102+ } ,
103+ option3 : async ( state : AppState ) : Promise < void > => {
104+ await titleScreen ( "APP NAME" ) ;
105+ console . log ( "Option 3 Logic would take place here :)" ) ;
106+ console . log ( "" ) ;
107+
108+ console . log ( "Press any key to return to Main Menu ..." ) ;
109+ await keypress ( ) ;
110+ state . menuActionEmitter . emit ( "actionCompleted" , state ) ;
111+ } ,
88112 exit : ( state : AppState ) : void => process . exit ( ) ,
89113 } ;
90114
0 commit comments