summaryrefslogtreecommitdiff
path: root/handleCmdLine.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 15:47:46 -0600
committerJeff Carr <[email protected]>2024-02-17 15:47:46 -0600
commit754371fdbf52d61dcd57d1b32b453b676cee01cf (patch)
tree83a80bb9632de359e4334142801ca676534b0883 /handleCmdLine.go
parent15f334b2d2eab816b31e7f3a35e172e598bd5c19 (diff)
export Status
Diffstat (limited to 'handleCmdLine.go')
-rw-r--r--handleCmdLine.go16
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)