Skip to content

Commit dd7069a

Browse files
authored
Add audit swift & cocoapods flags (#399)
1 parent b5919d4 commit dd7069a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

cli/docs/flags.go

+15-11
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ const (
3535
)
3636

3737
const (
38-
Mvn = "mvn"
39-
Gradle = "gradle"
40-
Npm = "npm"
41-
Pnpm = "pnpm"
42-
Yarn = "yarn"
43-
Nuget = "nuget"
44-
Go = "go"
45-
Pip = "pip"
46-
Pipenv = "pipenv"
47-
Poetry = "poetry"
38+
Mvn = "mvn"
39+
Gradle = "gradle"
40+
Npm = "npm"
41+
Pnpm = "pnpm"
42+
Yarn = "yarn"
43+
Nuget = "nuget"
44+
Go = "go"
45+
Pip = "pip"
46+
Pipenv = "pipenv"
47+
Poetry = "poetry"
48+
Swift = "swift"
49+
Cocoapods = "cocoapods"
4850
)
4951

5052
const (
@@ -159,7 +161,7 @@ var commandFlags = map[string][]string{
159161
Audit: {
160162
url, xrayUrl, user, password, accessToken, ServerId, InsecureTls, Project, Watches, RepoPath, Sbom, Licenses, OutputFormat, ExcludeTestDeps,
161163
useWrapperAudit, DepType, RequirementsFile, Fail, ExtendedTable, WorkingDirs, ExclusionsAudit, Mvn, Gradle, Npm,
162-
Pnpm, Yarn, Go, Nuget, Pip, Pipenv, Poetry, MinSeverity, FixableOnly, ThirdPartyContextualAnalysis, Threads,
164+
Pnpm, Yarn, Go, Swift, Cocoapods, Nuget, Pip, Pipenv, Poetry, MinSeverity, FixableOnly, ThirdPartyContextualAnalysis, Threads,
163165
Sca, Iac, Sast, Secrets, WithoutCA, ScanVuln, SecretValidation, OutputDir, SkipAutoInstall, AllowPartialResults, MaxTreeDepth,
164166
},
165167
GitAudit: {
@@ -267,6 +269,8 @@ var flagsMap = map[string]components.Flag{
267269
Pipenv: components.NewBoolFlag(Pipenv, "Set to true to request audit for a Pipenv project."),
268270
Poetry: components.NewBoolFlag(Poetry, "Set to true to request audit for a Poetry project."),
269271
Go: components.NewBoolFlag(Go, "Set to true to request audit for a Go project."),
272+
Swift: components.NewBoolFlag(Swift, "Set to true to request audit for a Swift project."),
273+
Cocoapods: components.NewBoolFlag(Cocoapods, "Set to true to request audit for a Cocoapods project."),
270274
DepType: components.NewStringFlag(DepType, "[npm] Defines npm dependencies type. Possible values are: all, devOnly and prodOnly."),
271275
MaxTreeDepth: components.NewStringFlag(MaxTreeDepth, "[pnpm] Max depth of the generated dependencies tree for SCA scan.", components.WithStrDefaultValue("Infinity")),
272276
ThirdPartyContextualAnalysis: components.NewBoolFlag(

0 commit comments

Comments
 (0)