File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use crate::errors::KeeperError;
33use error_stack:: { IntoReport , Report } ;
44use std:: collections:: HashMap ;
55use which:: which;
6+ use crate :: task;
67
78pub fn is_available ( ) -> bool {
89 std:: env:: current_dir ( )
@@ -32,6 +33,7 @@ pub fn get_task_command_map() -> HashMap<String, String> {
3233 if cargo_bin {
3334 task_command_map. insert ( "start" . to_string ( ) , "cargo run" . to_string ( ) ) ;
3435 }
36+ task_command_map. insert ( "sbom" . to_string ( ) , "cargo-cyclonedx cyclonedx -v --format json" . to_string ( ) ) ;
3537 task_command_map
3638}
3739
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ pub fn get_task_command_map() -> HashMap<String, String> {
9090 task_command_map. insert ( "outdated" . to_string ( ) , "npm-check -u" . to_string ( ) ) ;
9191 }
9292 }
93+ task_command_map. insert ( "sbom" . to_string ( ) , "npx @cyclonedx/cyclonedx-npm -o application.cdx.json" . to_string ( ) ) ;
9394 task_command_map
9495}
9596
You can’t perform that action at this time.
0 commit comments