diff options
Diffstat (limited to 'handleCmdLine.go')
| -rw-r--r-- | handleCmdLine.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/handleCmdLine.go b/handleCmdLine.go index 49c5ef7..fdafcbe 100644 --- a/handleCmdLine.go +++ b/handleCmdLine.go @@ -20,7 +20,7 @@ func argGitPull() bool { cmd := []string{"git", "pull"} var failed int = 0 for _, repo := range repolist.AllRepos() { - log.Info("Running:", repo.String(), cmd) + log.Info("Running:", repo.Status.Path(), cmd) err, output := repo.RunCmd(cmd) if err == nil { log.Info(output) @@ -41,12 +41,12 @@ func argCheckoutDevel() bool { var failed int = 0 for _, repo := range repolist.AllRepos() { if repo.CheckDirty() { - log.Info("skipping dirty repo", repo.String()) + log.Info("skipping dirty repo", repo.Name()) continue } - branch := repo.GetDevelBranchName() + branch := repo.Status.GetDevelBranchName() cmd := []string{"git", "checkout", branch} - log.Info("Running:", cmd, "in", repo.String()) + log.Info("Running:", cmd, "in", repo.Name()) err, output := repo.RunCmd(cmd) if err == nil { log.Info("git checkout worked", output) @@ -67,13 +67,13 @@ func argCheckoutUser() bool { me.autotypistWindow.Hide() var failed int = 0 for _, repo := range repolist.AllRepos() { - if repo.CheckDirty() { - log.Info("skipping dirty repo", repo.String()) + if repo.Status.CheckDirty() { + log.Info("skipping dirty repo", repo.Name()) continue } - branch := repo.GetUserBranchName() + branch := repo.Status.GetUserBranchName() cmd := []string{"git", "checkout", branch} - log.Info("Running:", cmd, "in", repo.String()) + log.Info("Running:", cmd, "in", repo.Name()) err, output := repo.RunCmd(cmd) if err == nil { log.Info("git checkout worked", output) |
