Skip to content

Commit 830c2e0

Browse files
Merge pull request #59 from Privado-Inc/monolithFlag
add - flag for monolith
2 parents b2a5c56 + 5c4f8e6 commit 830c2e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/scan.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func defineScanFlags(cmd *cobra.Command) {
7777
scanCmd.Flags().Bool("generate-audit-report", false, "If specified, audit report will be generated")
7878
scanCmd.Flags().Bool("enable-audit-semantic", false, "Flag to enable semantic filtering in audit report")
7979
scanCmd.Flags().Bool("enable-lambda-flows", false, "Flag to enable lambda flows")
80+
scanCmd.Flags().Bool("monolith", false, "Flag to divide a monolith repo into subProjects")
8081
}
8182

8283
func scan(cmd *cobra.Command, args []string) {
@@ -101,6 +102,7 @@ func scan(cmd *cobra.Command, args []string) {
101102
generateAuditReport, _ := cmd.Flags().GetBool("generate-audit-report")
102103
enableAuditSemantic, _ := cmd.Flags().GetBool("enable-audit-semantic")
103104
enableLambdaFlows, _ := cmd.Flags().GetBool("enable-lambda-flows")
105+
isMonolith, _ := cmd.Flags().GetBool("monolith")
104106

105107
externalRules, _ := cmd.Flags().GetString("config")
106108
if externalRules != "" {
@@ -219,6 +221,10 @@ func scan(cmd *cobra.Command, args []string) {
219221
commandArgs = append(commandArgs, "-elf")
220222
}
221223

224+
if isMonolith {
225+
commandArgs = append(commandArgs, "--monolith")
226+
}
227+
222228
// run image with options
223229
err = docker.RunImage(
224230
docker.OptionWithLatestImage(false), // because we already pull the image for access-key (with pullImage parameter)

0 commit comments

Comments
 (0)