MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ToConfigOptions

Method ToConfigOptions

cmd/flags/flags.go:29–38  ·  view source on GitHub ↗

ToConfigOptions converts the globalFlags into config options

()

Source from the content-addressed store, hash-verified

27
28// ToConfigOptions converts the globalFlags into config options
29func (gf *GlobalFlags) ToConfigOptions() *loader.ConfigOptions {
30 profiles := []string{}
31 profiles = append(profiles, gf.Profiles...)
32 return &loader.ConfigOptions{
33 OverrideName: gf.OverrideName,
34 Profiles: profiles,
35 DisableProfileActivation: gf.DisableProfileActivation,
36 Vars: gf.Vars,
37 }
38}
39
40// SetGlobalFlags applies the global flags
41func SetGlobalFlags(flags *flag.FlagSet) *GlobalFlags {

Callers 15

RunLogsMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunRunMethod · 0.80
RunUIMethod · 0.80
RunResetPodsMethod · 0.80
TestToConfigOptionsFunction · 0.80
RunListSyncMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestToConfigOptionsFunction · 0.64