get xterm settings from forge
This commit is contained in:
parent
f6e303a1d2
commit
b95118a30d
Notes:
Jeff Carr
2025-01-29 13:10:16 -06:00
// `autogen:go.mod` module go.wit.com/lib/gui/repolist go 1.21 toolchain go1.23.4 require ( github.com/go-cmd/cmd v1.4.3 go.wit.com/gui v0.22.23 go.wit.com/lib/gui/repostatus v0.22.36 go.wit.com/lib/gui/shell v0.22.23 go.wit.com/lib/protobuf/forgepb v0.0.63 go.wit.com/lib/protobuf/gitpb v0.0.65 go.wit.com/log v0.22.10 ) require ( github.com/destel/rill v0.6.0 // indirect go.wit.com/dev/alexflint/arg v1.5.5 // indirect go.wit.com/dev/alexflint/scalar v1.2.4 // indirect go.wit.com/lib/gadgets v0.22.6 // indirect go.wit.com/lib/protobuf/zoopb v0.0.22 // indirect go.wit.com/widget v1.1.27 // indirect google.golang.org/protobuf v1.36.4 // indirect ) // `autogen:go.sum` github.com/destel/rill v0.6.0 h1:8MQRzS6k0akKmwNZFahKIhG1dkBeNxMoWKSfOxkaJNw= github.com/destel/rill v0.6.0/go.mod h1:srKuXzvGqINUEGYR5b/iwvW+L9/S35RxVHWGYbXNoO4= github.com/go-cmd/cmd v1.4.3 h1:6y3G+3UqPerXvPcXvj+5QNPHT02BUw7p6PsqRxLNA7Y= github.com/go-cmd/cmd v1.4.3/go.mod h1:u3hxg/ry+D5kwh8WvUkHLAMe2zQCaXd00t35WfQaOFk= github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= go.wit.com/dev/alexflint/arg v1.5.5 h1:c4jgIb4OvHjnCMRNSjOa1sNLl6WDxV6tIkMVezR9hCk= go.wit.com/dev/alexflint/arg v1.5.5/go.mod h1:nH3F6TJDaAUgnLkC0WgRN/H047YfN1TYKaWPYr6B8lo= go.wit.com/dev/alexflint/scalar v1.2.4 h1:zmBeEkObwz1lcelwfGNYP2GS6SQ9e0tdv7JdHwMZEEk= go.wit.com/dev/alexflint/scalar v1.2.4/go.mod h1:kCNO1Fo5LnnK6+qa+zYhP5fdgfC1C+vx1ti99Md+FAM= go.wit.com/gui v0.22.23 h1:bvbnV+o2YWeZsLT859PYUZKfouJepnNFwqbE17CfOmU= go.wit.com/gui v0.22.23/go.mod h1:BLB9puy4uNoJYA4WB5LBc7aB3mXavgh4mVLB36WuiTk= go.wit.com/lib/gadgets v0.22.6 h1:7ajBzCRftjZ170aa+QLhxuIL4eXK76kFLATD3tkxcKY= go.wit.com/lib/gadgets v0.22.6/go.mod h1:3eMOLDlSyY6vohlUheTCB74PwYxhpHkX1KGZXTSOgdE= go.wit.com/lib/gui/repostatus v0.22.36 h1:iA6lzFn67Pynb+JjhQgclKsbyd5aqooF8pMJQZSjRBo= go.wit.com/lib/gui/repostatus v0.22.36/go.mod h1:oyAaEO9XIxADKmDNl8rG7+6AYKk1E0OBW0WhZvxWizc= go.wit.com/lib/gui/shell v0.22.23 h1:U6Njsme2NU7ntcopcSXHD9bNYZzzeQueSTRB/L1YrgE= go.wit.com/lib/gui/shell v0.22.23/go.mod h1:K6+ULaS8xQFcsi1QoWHY1+PM/vS+IRSyJvbnJF9GyIQ= go.wit.com/lib/protobuf/forgepb v0.0.63 h1:nAQWPDSrlHu0LYP0ELYyl8UStiqGL/tRVZVaiEdZWkE= go.wit.com/lib/protobuf/forgepb v0.0.63/go.mod h1:y0q6zg8/Yk0NaPWO6en4BmkJzembiIkkwdWxBPhLrJc= go.wit.com/lib/protobuf/gitpb v0.0.65 h1:h6/m0Osu5vcL/oAOWiBg9185neODCcRSzSyoeKcVT6I= go.wit.com/lib/protobuf/gitpb v0.0.65/go.mod h1:zlLM/+9vajrXNVbczpoyYIraLokZ6My47wDgqo9Gobg= go.wit.com/lib/protobuf/zoopb v0.0.22 h1:tAFwRGMepMz+AsEehtwW5mO7ljXspQCcY3qTOT/EgXI= go.wit.com/lib/protobuf/zoopb v0.0.22/go.mod h1:iEec6TXYJjaeShv+vOfCuw/3uWnfm35ongl19T2l0v0= go.wit.com/log v0.22.10 h1:rlSgaYjvxbpcmi9UBQO3ESmbd/jiyFdRQFoGOvpCEUc= go.wit.com/log v0.22.10/go.mod h1:4uNPFBqhsAh8zNF+zxVEmC3c/9AZ8JeTfUUvRpddvLQ= go.wit.com/widget v1.1.27 h1:Yd+qp6GZVwLiTTepShXSeWSDqjaCxLyfhU0ch2FrPZ8= go.wit.com/widget v1.1.27/go.mod h1:OXIdWk7GhVJRLnHTvf45LbPNXGYG/JjbkfnmXtkoiYE= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.36.4 h1:6A3ZDJHn/eNqc1i+IdefRzy/9PokBTPvcqMySR7NNIM= google.golang.org/protobuf v1.36.4/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= // `autogen:`
45
xterm.go
45
xterm.go
|
@ -1,27 +1,45 @@
|
|||
package repolist
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
func (rs *RepoRow) XtermNohup(cmdline string) {
|
||||
p := rs.pb.GetFullPath()
|
||||
shell.XtermCmd(p, []string{cmdline})
|
||||
}
|
||||
func (rs *RepoRow) Xterm(cmdline string) {
|
||||
p := rs.pb.GetFullPath()
|
||||
shell.XtermCmd(p, []string{cmdline})
|
||||
}
|
||||
func (rs *RepoRow) XtermWait(cmdline string) {
|
||||
p := rs.pb.GetFullPath()
|
||||
shell.XtermCmdWait(p, []string{cmdline})
|
||||
var xterm []string
|
||||
xterm = append(xterm, me.forge.Config.Xterm)
|
||||
xterm = append(xterm, me.forge.Config.XtermArgv...)
|
||||
xterm = append(xterm, "bash")
|
||||
xterm = append(xterm, "-c")
|
||||
xterm = append(xterm, cmdline)
|
||||
shell.XtermCmd(p, xterm)
|
||||
}
|
||||
|
||||
func (rs *RepoRow) Xterm(cmdline string) {
|
||||
p := rs.pb.GetFullPath()
|
||||
var xterm []string
|
||||
xterm = append(xterm, me.forge.Config.Xterm)
|
||||
xterm = append(xterm, me.forge.Config.XtermArgv...)
|
||||
xterm = append(xterm, "bash")
|
||||
xterm = append(xterm, "-c")
|
||||
xterm = append(xterm, cmdline)
|
||||
shell.XtermCmd(p, xterm)
|
||||
}
|
||||
|
||||
func (rs *RepoRow) XtermWait(cmdline string) {
|
||||
p := rs.pb.GetFullPath()
|
||||
var xterm []string
|
||||
xterm = append(xterm, me.forge.Config.Xterm)
|
||||
xterm = append(xterm, me.forge.Config.XtermArgv...)
|
||||
xterm = append(xterm, "bash")
|
||||
xterm = append(xterm, "-c")
|
||||
xterm = append(xterm, cmdline)
|
||||
log.Info("repolist.XtermWait()", p, cmdline)
|
||||
shell.XtermCmdWait(p, xterm)
|
||||
}
|
||||
|
||||
/*
|
||||
func (rs *RepoRow) XtermBash(args []string) {
|
||||
var argsX = []string{"-geometry", "120x40"}
|
||||
tmp := strings.Join(args, " ") + ";bash"
|
||||
|
@ -43,3 +61,4 @@ func (rs *RepoRow) XtermBash(args []string) {
|
|||
log.Log(WARN, "cmd = xterm", argsX)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue