diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 45 |
1 files changed, 41 insertions, 4 deletions
@@ -9,16 +9,26 @@ func (r *Repo) String() string { return r.status.String() } +// full path "/home/username/go/src/go.wit.com/apps/autotypist" +func (r *Repo) Path() string { + return r.status.Path() +} + +// go path "go.wit.com/apps/autotypist" +func (r *Repo) GoPath() string { + return r.status.GoName() +} + func (r *RepoList) Hidden() bool { - return r.reposwin.Hidden() + return r.reposbox.Hidden() } func (r *RepoList) Show() { - r.reposwin.Show() + r.reposbox.Show() } func (r *RepoList) Hide() { - r.reposwin.Hide() + r.reposbox.Hide() } func (r *RepoList) AllRepos() []*Repo { @@ -38,8 +48,32 @@ func AllRepos() []*Repo { return all } +func (r *Repo) Build() bool { + return r.status.Build() +} + +func (r *Repo) Xterm(s string) { + r.status.Xterm(s) +} + +func (r *Repo) RepoType() string { + return r.status.RepoType() +} + +func (r *Repo) Status() string { + return r.dirtyLabel.String() +} + +func (r *Repo) MergeDevelToMaster() bool { + return r.status.MergeDevelToMaster() +} + +func (r *Repo) MergeUserToDevel() bool { + return r.status.MergeUserToDevel() +} + func (r *Repo) Scan() bool { - return r.newScan() + return r.NewScan() } func (r *Repo) Exists(s string) bool { @@ -69,6 +103,9 @@ func (r *Repo) IsPerfect() bool { if r.dirtyLabel.String() == "PERFECT" { return true } + if r.dirtyLabel.String() == "unchanged" { + return true + } return false } |
