From b4363dfd28ebf5b090edd6a9cf81016a74b4e9cd Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 20 Oct 2021 12:49:05 -0400 Subject: [PATCH] srv: export tui reload func --- internal/config/config.go | 4 ++-- internal/config/git.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 9c7f1cfb8..88b6af052 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -83,7 +83,7 @@ func NewConfig(cfg *config.Config) (*Config, error) { return c, nil } -func (cfg *Config) reload() error { +func (cfg *Config) Reload() error { err := cfg.Source.LoadRepos() if err != nil { return err @@ -168,7 +168,7 @@ func (cfg *Config) createDefaultConfigRepo(yaml string) error { } else if err != nil { return err } - return cfg.reload() + return cfg.Reload() } func (cfg *Config) isPrivate(repo string) bool { diff --git a/internal/config/git.go b/internal/config/git.go index 6832455b4..b1a46e173 100644 --- a/internal/config/git.go +++ b/internal/config/git.go @@ -9,7 +9,7 @@ import ( ) func (cfg *Config) Push(repo string, pk ssh.PublicKey) { - err := cfg.reload() + err := cfg.Reload() if err != nil { log.Printf("error reloading after push: %s", err) }