MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / normalizeInstallOptions

Function normalizeInstallOptions

internal/pluginstore/install.go:580–596  ·  view source on GitHub ↗
(options InstallOptions)

Source from the content-addressed store, hash-verified

578}
579
580func normalizeInstallOptions(options InstallOptions) InstallOptions {
581 options.PluginsDir = strings.TrimSpace(options.PluginsDir)
582 if options.PluginsDir == "" {
583 options.PluginsDir = "plugins"
584 }
585 options.GOOS = strings.TrimSpace(options.GOOS)
586 if options.GOOS == "" {
587 options.GOOS = runtime.GOOS
588 }
589 options.GOARCH = strings.TrimSpace(options.GOARCH)
590 if options.GOARCH == "" {
591 options.GOARCH = runtime.GOARCH
592 }
593 options.GOOS = normalizeGOOS(options.GOOS)
594 options.GOARCH = normalizeGOARCH(options.GOARCH)
595 return options
596}

Callers 5

InstallMethod · 0.85
InstallManifestMethod · 0.85
InstallVersionMethod · 0.85
InstallDirectMethod · 0.85
InstallArchiveFunction · 0.85

Calls 2

normalizeGOOSFunction · 0.85
normalizeGOARCHFunction · 0.85

Tested by

no test coverage detected