File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use napi_derive::napi;
1313#[ napi]
1414#[ cfg( not( tarpaulin_include) ) ]
1515pub async fn main ( ) -> Result < ( ) > {
16- dependency_check_updates_cli :: main ( & std:: env:: args ( ) . collect :: < Vec < String > > ( ) )
16+ dependency_check_updates :: main ( & std:: env:: args ( ) . collect :: < Vec < String > > ( ) )
1717 . await
1818 . map_err ( |e| Error :: from_reason ( e. to_string ( ) ) )
1919}
Original file line number Diff line number Diff line change 77#[ tokio:: main( flavor = "current_thread" ) ]
88#[ cfg( not( tarpaulin_include) ) ]
99async fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error + Send + Sync > > {
10- dependency_check_updates_cli :: main ( & std:: env:: args ( ) . collect :: < Vec < String > > ( ) ) . await
10+ dependency_check_updates :: main ( & std:: env:: args ( ) . collect :: < Vec < String > > ( ) ) . await
1111}
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ use std::process::ExitCode;
33#[ tokio:: main( flavor = "current_thread" ) ]
44#[ cfg( not( tarpaulin_include) ) ]
55async fn main ( ) -> ExitCode {
6- let cli = dependency_check_updates_cli :: parse_args ( ) ;
6+ let cli = dependency_check_updates :: parse_args ( ) ;
77 let error_level = cli. error_level ;
88
9- match dependency_check_updates_cli :: run ( & cli) . await {
9+ match dependency_check_updates :: run ( & cli) . await {
1010 Ok ( has_updates) => {
1111 // error_level 2: exit 1 if any updates were found (CI mode)
1212 if error_level >= 2 && has_updates {
You can’t perform that action at this time.
0 commit comments