diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,7 +12,7 @@ import ( ) // write to ~/.config/forge/ unless ENV{FORGE_HOME} is set -func (m *Repos) ConfigSave() error { +func (m *ForgeConfigs) ConfigSave() error { if os.Getenv("FORGE_HOME") == "" { homeDir, _ := os.UserHomeDir() fullpath := filepath.Join(homeDir, ".config/forge") @@ -39,7 +39,7 @@ func (m *Repos) ConfigSave() error { } // load the ~/.config/forge/ files -func (c *Repos) ConfigLoad() error { +func (c *ForgeConfigs) ConfigLoad() error { if os.Getenv("FORGE_HOME") == "" { homeDir, _ := os.UserHomeDir() fullpath := filepath.Join(homeDir, ".config/forge") @@ -66,7 +66,7 @@ func (c *Repos) ConfigLoad() error { log.Warn("broken forge.pb config file") return err } - log.Info("config load found", len(c.Repos), "repos") + log.Info("config load found", len(c.ForgeConfigs), "repos") return nil } @@ -86,7 +86,7 @@ func (c *Repos) ConfigLoad() error { log.Warn("broken forge.text config file") return err } - log.Info("config load found", len(c.Repos), "repos") + log.Info("config load found", len(c.ForgeConfigs), "repos") return nil } @@ -106,7 +106,7 @@ func (c *Repos) ConfigLoad() error { log.Warn("broken forge.json config file") return err } - log.Info("config load found", len(c.Repos), "repos") + log.Info("config load found", len(c.ForgeConfigs), "repos") return nil } |
