feat(config): replace configs path to config

main
Tran Hau 2021-01-18 16:52:55 +07:00
parent 0689546a4d
commit c8996e3850
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ import (
)
const (
configFilePath = "config/config.json"
homeSymbol = '~'
)
@ -99,7 +101,7 @@ func (c *Config) Update() error {
}
func getConfigPath(path string) string {
return filepath.Join(path, "configs/config.json")
return filepath.Join(path, configFilePath)
}
func removeAndCopy(from, to string, fn copyFn) error {