diff options
| author | Jeff Carr <[email protected]> | 2024-02-17 14:22:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-17 14:22:24 -0600 |
| commit | b298958bcd460763e44348467c1c5bd4591b11e7 (patch) | |
| tree | 395e4be5e31b3939fc1ca596642be2b0d634db7c /common.go | |
| parent | 1b103f2a1c9beb87e61ebbd04fe7cdbf605988ed (diff) | |
early successes. autotypist works
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 } |
