(cfg Config)
| 60 | } |
| 61 | |
| 62 | func SaveGlobalConfig(cfg Config) error { |
| 63 | path, err := getGlobalConfigPath() |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | data, _ := json.MarshalIndent(cfg, "", " ") |
| 68 | return ioutil.WriteFile(path, data, 0644) |
| 69 | } |
| 70 | |
| 71 | func SaveProjectConfig(cfg Config) error { |
| 72 | path := filepath.Join(".", PROJECT_CONFIG_FILE) |
no test coverage detected