@@ -11,15 +11,10 @@ import { version } from "./package.json";
11
11
import type { CommitProgressEvent } from "./src/lib/commit" ;
12
12
import type { MultiBar , SingleBar } from "cli-progress" ;
13
13
14
- // Import types for cli-progress (available at compile time even with dynamic imports)
15
- // type MultiBar = import("cli-progress").MultiBar;
16
- // type SingleBar = import("cli-progress").SingleBar;
17
-
18
14
// Progress bar manager for handling multiple file uploads
19
15
class UploadProgressManager {
20
16
private multibar : MultiBar | null = null ;
21
17
private fileBars : Map < string , SingleBar > = new Map ( ) ;
22
- private currentPhase : string = "" ;
23
18
private readonly isQuiet : boolean ;
24
19
private cliProgressAvailable : boolean = false ;
25
20
private events : Array < CommitProgressEvent > = [ ] ;
@@ -54,7 +49,6 @@ class UploadProgressManager {
54
49
if ( this . isQuiet ) return ;
55
50
56
51
if ( event . event === "phase" ) {
57
- this . currentPhase = event . phase ;
58
52
this . logPhase ( event . phase ) ;
59
53
} else if ( event . event === "fileProgress" ) {
60
54
this . updateFileProgress ( event . path , event . progress , event . state ) ;
@@ -121,9 +115,6 @@ class UploadProgressManager {
121
115
if ( ! this . isQuiet && this . cliProgressAvailable && this . multibar ) {
122
116
this . multibar . stop ( ) ;
123
117
}
124
- for ( const event of this . events ) {
125
- console . log ( event ) ;
126
- }
127
118
}
128
119
}
129
120
0 commit comments