summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 13:53:54 -0700
committerJeff Carr <[email protected]>2019-05-26 13:53:54 -0700
commitb57ed75580263735943d45d24a430611aa3771ca (patch)
tree71a11b9e08125abb745d5634077cb1294e70d14b /debug.go
parent22c687ea4dd64140714a73ef759c28d06d3626c0 (diff)
work on add VM
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/debug.go b/debug.go
index e36e39e..3414268 100644
--- a/debug.go
+++ b/debug.go
@@ -91,6 +91,20 @@ func runPingClick(b *ButtonMap) {
log.Println("runPingClick END")
}
+func runAddVmClick(b *ButtonMap) {
+ log.Println("runPingClick START")
+ log.Println("runTestExecClick b.VM", b.VM)
+ hostname := "localhost"
+ if (b.VM != nil) {
+ hostname = b.VM.Hostname
+ }
+ spew.Dump(b)
+ var tmp []string
+ tmp = append(tmp, "xterm", "-e", "ping " + hostname + ";bash")
+ runCommand(tmp)
+ log.Println("runPingClick END")
+}
+
func runTestExecClick(b *ButtonMap) {
log.Println("runTestExecClick START")
if runtime.GOOS == "linux" {