MCPcopy
hub / github.com/aquasecurity/trivy / NewModuleFlagGroup

Function NewModuleFlagGroup

pkg/flag/module_flags.go:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func NewModuleFlagGroup() *ModuleFlagGroup {
44 return &ModuleFlagGroup{
45 Dir: ModuleDirFlag.Clone(),
46 EnabledModules: EnableModulesFlag.Clone(),
47 }
48}
49
50func (f *ModuleFlagGroup) Name() string {
51 return "Module"

Callers 10

NewImageCommandFunction · 0.92
NewFilesystemCommandFunction · 0.92
NewRootfsCommandFunction · 0.92
NewRepositoryCommandFunction · 0.92
NewServerCommandFunction · 0.92
NewConfigCommandFunction · 0.92
NewModuleCommandFunction · 0.92
NewVMCommandFunction · 0.92
getAllFlagsFunction · 0.92
HiddenFlagsFunction · 0.85

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…