Skip to content

Commit 8a029a0

Browse files
authored
Merge pull request #32 from swarit-stepsecurity/swarit/feat/windows-eclipse-plugins
feat(windows): eclipse plugin detection
2 parents e001cf8 + 79b1250 commit 8a029a0

9 files changed

Lines changed: 858 additions & 59 deletions

File tree

internal/cli/cli.go

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ type Config struct {
1717
HTMLOutputFile string // set by --html (not persisted)
1818
ColorMode string // "auto", "always", "never"
1919
Verbose bool // --verbose
20-
EnableNPMScan *bool // nil=auto, true/false=explicit
21-
EnableBrewScan *bool // nil=auto, true/false=explicit
22-
EnablePythonScan *bool // nil=auto, true/false=explicit
23-
SearchDirs []string // defaults to ["$HOME"]
20+
EnableNPMScan *bool // nil=auto, true/false=explicit
21+
EnableBrewScan *bool // nil=auto, true/false=explicit
22+
EnablePythonScan *bool // nil=auto, true/false=explicit
23+
IncludeBundledPlugins bool // --include-bundled-plugins: include bundled/platform plugins in output
24+
SearchDirs []string // defaults to ["$HOME"]
2425
}
2526

2627
// Parse parses CLI arguments and returns a Config.
@@ -83,6 +84,8 @@ func Parse(args []string) (*Config, error) {
8384
case arg == "--disable-python-scan":
8485
v := false
8586
cfg.EnablePythonScan = &v
87+
case arg == "--include-bundled-plugins":
88+
cfg.IncludeBundledPlugins = true
8689
case strings.HasPrefix(arg, "--color="):
8790
mode := strings.TrimPrefix(arg, "--color=")
8891
if mode != "auto" && mode != "always" && mode != "never" {
@@ -145,9 +148,10 @@ Options:
145148
--disable-npm-scan Disable Node.js package scanning
146149
--enable-brew-scan Enable Homebrew package scanning
147150
--disable-brew-scan Disable Homebrew package scanning
148-
--enable-python-scan Enable Python package scanning
149-
--disable-python-scan Disable Python package scanning
150-
--verbose Show progress messages (suppressed by default)
151+
--enable-python-scan Enable Python package scanning
152+
--disable-python-scan Disable Python package scanning
153+
--include-bundled-plugins Include bundled/platform plugins in output (Windows)
154+
--verbose Show progress messages (suppressed by default)
151155
--color=WHEN Color mode: auto | always | never (default: auto)
152156
-v, --version Show version
153157
-h, --help Show this help

0 commit comments

Comments
 (0)