@@ -57,30 +57,27 @@ export default class ScanEol extends Command {
57
57
public async run ( ) : Promise < EolReport | undefined > {
58
58
const { flags } = await this . parse ( ScanEol ) ;
59
59
60
- if ( ! flags . file ) {
61
- track ( 'CLI SBOM Generation Started' , ( context ) => ( {
62
- command : context . command ,
63
- command_flags : context . command_flags ,
64
- scan_location : flags . dir ,
65
- } ) ) ;
66
- }
60
+ track ( 'CLI EOL Scan Started' , ( context ) => ( {
61
+ command : context . command ,
62
+ command_flags : context . command_flags ,
63
+ scan_location : flags . dir ,
64
+ } ) ) ;
67
65
68
66
const sbomStartTime = performance . now ( ) ;
69
67
const sbom = await this . loadSbom ( ) ;
70
68
const sbomEndTime = performance . now ( ) ;
71
69
72
70
if ( ! flags . file ) {
73
- track ( 'CLI SBOM Generation Completed ' , ( context ) => ( {
71
+ track ( 'CLI SBOM Generated ' , ( context ) => ( {
74
72
command : context . command ,
75
73
command_flags : context . command_flags ,
76
74
scan_location : flags . dir ,
77
- sbom_created : true ,
78
- sbom_load_time : ( sbomEndTime - sbomStartTime ) / 1000 ,
75
+ sbom_generation_time : ( sbomEndTime - sbomStartTime ) / 1000 ,
79
76
} ) ) ;
80
77
}
81
78
82
79
if ( ! sbom . components ?. length ) {
83
- track ( 'CLI No Components Found, Report Not Generated ' , ( context ) => ( {
80
+ track ( 'CLI EOL Scan Ended, No Components Found ' , ( context ) => ( {
84
81
command : context . command ,
85
82
command_flags : context . command_flags ,
86
83
scan_location : flags . dir ,
@@ -89,12 +86,6 @@ export default class ScanEol extends Command {
89
86
return ;
90
87
}
91
88
92
- track ( 'CLI EOL Scan Started' , ( context ) => ( {
93
- command : context . command ,
94
- command_flags : context . command_flags ,
95
- scan_location : flags . dir ,
96
- } ) ) ;
97
-
98
89
const scanStartTime = performance . now ( ) ;
99
90
const scan = await this . scanSbom ( sbom ) ;
100
91
const scanEndTime = performance . now ( ) ;
0 commit comments