diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -17,6 +17,30 @@ func (rs *RepoStatus) Changed() bool { return rs.changed } +// deprecate this. returns the gopath right now +func (rs *RepoStatus) String() string { + log.Warn("RepoStatus.String() is to be deprecated") + return rs.path.String() +} + +// returns the go path for the repo. "go.wit.com/apps/autotypist" +func (rs *RepoStatus) GoName() string { + return rs.goSrcPath.String() +} + +// returns the filesystem path to the repo +func (rs *RepoStatus) Path() string { + return rs.realPath.String() +} + +/* +func (rs *RepoStatus) GetPath() string { + return rs.path.String() +} +*/ + + +/* func (rs *RepoStatus) Draw() { if !rs.Ready() { return @@ -24,6 +48,7 @@ func (rs *RepoStatus) Draw() { log.Log(CHANGE, "Draw() window ready =", rs.ready) rs.window.TestDraw() } +*/ func (rs *RepoStatus) Show() { if !rs.Ready() { @@ -100,7 +125,8 @@ func (rs *RepoStatus) Build() bool { return false } log.Info("need to build here", rs.String()) - rs.RunCmd([]string{"go", "build", "-v", "-x"}) + // rs.RunCmd([]string{"go", "build", "-v", "-x"}) + rs.XtermBash([]string{"go", "build", "-v", "-x"}) if rs.Exists(name) { log.Warn("build worked", name) return true |
