diff options
| author | Jeff Carr <[email protected]> | 2023-04-27 22:21:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-27 22:21:31 -0500 |
| commit | a1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (patch) | |
| tree | e355d637606f34b2a17da4e9d84292596e175166 /cmds/buttonplugin/log.go | |
| parent | 87b62c98a6ebd9d0e48850d1710de7f39aba41c8 (diff) | |
nocui: simulates button clicks
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/buttonplugin/log.go')
| -rw-r--r-- | cmds/buttonplugin/log.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmds/buttonplugin/log.go b/cmds/buttonplugin/log.go index 70039df..13238f4 100644 --- a/cmds/buttonplugin/log.go +++ b/cmds/buttonplugin/log.go @@ -2,12 +2,7 @@ package main import ( - "log" "fmt" - "os" - "io" - "time" - "bufio" arg "github.com/alexflint/go-arg" "git.wit.org/wit/gui" ) @@ -21,14 +16,17 @@ var args struct { gui.GuiArgs } +/* var f1 *os.File var f2 *os.File var err error +*/ func init() { arg.MustParse(&args) fmt.Println(args.Foo, args.Bar, args.User) +/* log.Println() log.Println("STDOUT is now at /tmp/guilogfile") log.Println("STDOUT is now at /tmp/guilogfile") @@ -42,8 +40,10 @@ func init() { log.SetOutput(f1) log.Println("This is a test log entry") +*/ } +/* func captureSTDOUT() { f2, _ = os.OpenFile("/tmp/my.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0664) multiWriter := io.MultiWriter(os.Stderr, f2) @@ -68,3 +68,4 @@ func captureSTDOUT() { // hacky sleep to ensure the go routine can write before program exits time.Sleep(time.Second) } +*/ |
