From 2bc2096e841f3b262563126feb8a7a4c2b66f090 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 15 Feb 2024 22:50:50 -0600 Subject: xterm fixes also a i18n syntax idea show all tags in the main window --- common.go | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'common.go') diff --git a/common.go b/common.go index bc518be..1b0f7a6 100644 --- a/common.go +++ b/common.go @@ -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 -- cgit v1.2.3