@@ -33,7 +33,12 @@ protected virtual void RunAdd(StatusContext statusContext)
3333 }
3434
3535 if ( ! Bundle . IsLoaded && File . Exists ( Bundle . BundlePath ) )
36+ {
37+ statusContext . Status ( "[yellow]Loading Bundle[/]" ) ;
3638 Bundle . LoadFromFile ( false ) ;
39+ }
40+
41+ statusContext . Status ( "[yellow]Adding Files[/]" ) ;
3742
3843 Parallel . ForEach ( Utilities . SafeEnumerateFiles ( Bundle . RootPath , "*" ) , file =>
3944 {
@@ -58,13 +63,16 @@ protected virtual void RunSign(StatusContext statusContext, X509Certificate2Coll
5863 throw new ApplicationException ( "Bundle is not initialized" ) ;
5964 }
6065
66+ statusContext . Status ( "[yellow]Loading Bundle[/]" ) ;
6167 Bundle . LoadFromFile ( false ) ;
6268
6369 int divider = 0 ;
6470 foreach ( var cert in certificates )
6571 {
6672 if ( divider ++ > 0 ) AnsiConsole . WriteLine ( ) ;
6773
74+ statusContext . Status ( "[yellow]Loading certificate informations[/]" ) ;
75+
6876 var grid = new Grid ( ) ;
6977 grid . AddColumn ( new GridColumn ( ) . NoWrap ( ) ) ;
7078 grid . AddColumn ( new GridColumn ( ) . PadLeft ( 2 ) ) ;
@@ -78,16 +86,23 @@ protected virtual void RunSign(StatusContext statusContext, X509Certificate2Coll
7886
7987 AnsiConsole . Write ( grid ) ;
8088 AnsiConsole . WriteLine ( ) ;
89+
90+ statusContext . Status ( "[yellow]Verifying Certificate[/]" ) ;
91+
8192 bool verifyCert = VerifyCertificate ( cert ) ;
8293 if ( ! verifyCert ) continue ;
8394
95+ statusContext . Status ( "[yellow]Preparing for signing[/]" ) ;
96+
8497 var prvKey = cert . GetRSAPrivateKey ( ) ;
8598 if ( prvKey == null )
8699 {
87100 AnsiConsole . MarkupLine ( $ "[{ Color . Green } ] Failed to Acquire RSA Private Key[/]") ;
88101 continue ;
89102 }
90103
104+ statusContext . Status ( "[yellow]Signing Bundle[/]" ) ;
105+
91106 Bundle . Sign ( cert , prvKey ) ;
92107 AnsiConsole . MarkupLine ( $ "[green] Signing Completed Successfully[/]") ;
93108 }
@@ -115,8 +130,11 @@ protected virtual void RunVerify(StatusContext statusContext)
115130 [ "file_error" ] = Color . Red3_1 ,
116131 } ;
117132
133+ statusContext . Status ( "[yellow]Loading Bundle[/]" ) ;
118134 Bundle . LoadFromFile ( ) ;
119135
136+ statusContext . Status ( "[yellow]Verification Phase 1: Certificates and signatures[/]" ) ;
137+
120138 int verifiedCerts = 0 ;
121139 int divider = 0 ;
122140
@@ -157,7 +175,7 @@ protected virtual void RunVerify(StatusContext statusContext)
157175
158176 AnsiConsole . WriteLine ( ) ;
159177
160- statusContext . Status ( "[yellow]Verifying Files[/]" ) ;
178+ statusContext . Status ( "[yellow]Verification Phase 2: Files[/]" ) ;
161179
162180 bool p2Verified = true ;
163181
0 commit comments