@@ -36,6 +36,9 @@ var projectTagNames []string
3636var concurrentNumber int
3737var sbomOutputConfig string
3838var sbomOutputType common.SBOMFormatFlag
39+ var webhookAddr string
40+ var webhookMode common.WebhookModeFlag
41+ var extraData string
3942
4043func Cmd () * cobra.Command {
4144 var c cobra.Command
@@ -52,6 +55,9 @@ func Cmd() *cobra.Command {
5255 c .Flags ().StringVar (& privateSourceName , "maven-setting-name" , "" , "specify the name of the Maven settings.xml file used during the scan" )
5356 c .Flags ().StringArrayVar (& projectTagNames , "project-tag" , make ([]string , 0 ), "specify the tag of the project" )
5457 c .Flags ().IntVarP (& concurrentNumber , "max-concurrent-uploads" , "j" , 1 , "Set the maximum number of parallel uploads." )
58+ c .Flags ().StringVar (& webhookAddr , "webhook-addr" , "" , "Specify the webhook address" )
59+ c .Flags ().Var (& webhookMode , "webhook-mode" , "Specify the webhook mode, currently supports: simple, full(default)" )
60+ c .Flags ().StringVar (& extraData , "extra-data" , "" , "Specify the extra data" )
5561 return & c
5662}
5763
@@ -70,6 +76,9 @@ func DfCmd() *cobra.Command {
7076 c .Flags ().StringArrayVar (& projectTagNames , "project-tag" , make ([]string , 0 ), "specify the tag of the project" )
7177 c .Flags ().StringVar (& sbomOutputConfig , "sbom-output" , "-" , "Specify the SBOM output file path, use \" -\" to output to stdout" )
7278 c .Flags ().Var (& sbomOutputType , "sbom-format" , "(Required) Specify the SBOM format, currently supports: msdx1.1+json" )
79+ c .Flags ().StringVar (& webhookAddr , "webhook-addr" , "" , "Specify the webhook address" )
80+ c .Flags ().Var (& webhookMode , "webhook-mode" , "Specify the webhook mode, currently supports: simple, full(default)" )
81+ c .Flags ().StringVar (& extraData , "extra-data" , "" , "Specify the extra data" )
7382 return & c
7483}
7584
@@ -84,6 +93,9 @@ func EnvCmd() *cobra.Command {
8493 c .Flags ().StringArrayVar (& projectTagNames , "project-tag" , make ([]string , 0 ), "specify the tag of the project" )
8594 c .Flags ().StringVar (& sbomOutputConfig , "sbom-output" , "-" , "Specify the SBOM output file path, use \" -\" to output to stdout" )
8695 c .Flags ().Var (& sbomOutputType , "sbom-format" , "(Required) Specify the SBOM format, currently supports: msdx1.1+json" )
96+ c .Flags ().StringVar (& webhookAddr , "webhook-addr" , "" , "Specify the webhook address" )
97+ c .Flags ().Var (& webhookMode , "webhook-mode" , "Specify the webhook mode, currently supports: simple, full(default)" )
98+ c .Flags ().StringVar (& extraData , "extra-data" , "" , "Specify the extra data" )
8799 return & c
88100}
89101
0 commit comments