Skip to content

Commit

Permalink
srv: export tui reload func
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 20, 2021
1 parent 478096c commit b4363df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b4363df

Please sign in to comment.