Lines Matching refs:cfg
37 cfg := config.GetConfig()
38 if _, ok := cfg.Codebases[name]; ok {
39 return cfg, fmt.Errorf("Codebase %s already exists", name)
41 cfg.Codebases[name] = absPath
42 return cfg, err
47 cfg := config.GetConfig()
48 _, ok := cfg.Codebases[remove]
52 delete(cfg.Codebases, remove)
53 if cfg.DefaultCodebase == remove {
54 cfg.DefaultCodebase = ""
56 return cfg, nil
61 cfg := config.GetConfig()
62 def := cfg.DefaultCodebase
68 cfg := config.GetConfig()
69 _, ok := cfg.Codebases[def]
73 cfg.DefaultCodebase = def
79 cfg := config.GetConfig()
80 return cfg.Codebases
85 cfg := config.GetConfig()
86 dir, ok := cfg.Codebases[codebase]