Lines Matching refs:cfg
43 cfg := config.GetConfig()
44 _, ok := cfg.Codebases[codebaseName]
48 if _, ok := cfg.Workspaces[workspaceName]; ok {
51 cfg.Workspaces[workspaceName] = codebaseName
72 cfg := config.GetConfig()
73 codebaseName, ok := cfg.Workspaces[workspaceName]
93 cfg := config.GetConfig()
94 _, ok := cfg.Workspaces[workspaceName]
104 cfg := config.GetConfig()
105 codebase, ok := cfg.Workspaces[workspaceName]
118 cfg := config.GetConfig()
120 for name, codebaseName := range cfg.Workspaces {
215 cfg := config.GetConfig()
216 _, ok := cfg.Workspaces[remove]
218 return cfg, fmt.Errorf("Workspace %s not found", remove)
222 return cfg, err
226 return cfg, err
230 return cfg, err
235 return cfg, err
237 delete(cfg.Workspaces, remove)
238 return cfg, err