summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/main.go b/main.go
index 26bba0b..b295ba0 100644
--- a/main.go
+++ b/main.go
@@ -6,6 +6,7 @@ package main
// An app to submit patches for the 30 GO GUI repos
import (
+ "fmt"
"os"
"go.wit.com/dev/alexflint/arg"
@@ -18,7 +19,7 @@ var VERSION string
var BUILDTIME string
// used for shell auto completion
-var ARGNAME string = "startxplacment"
+var ARGNAME string = "startxplacement"
// using this for now. triggers config save
var configSave bool
@@ -39,9 +40,18 @@ func main() {
os.Exit(0)
}
+ if argv.DumpX != nil {
+ doDumpX()
+ }
+
if argv.Dump != nil {
- // doDump()
- log.Info("dump here")
+ // 2. Get the current state of all terminal windows.
+ currentStates, err := getCurrentState()
+ if err != nil {
+ fmt.Printf("Error getting current window state: %v\n", err)
+ return
+ }
+ fmt.Printf("%v\n", currentStates)
okExit("")
}