summaryrefslogtreecommitdiff
path: root/cmds/plugin-consoleonly/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-03 16:08:39 -0600
committerJeff Carr <[email protected]>2023-12-03 16:59:57 -0600
commit9d075afb1df62276dea06be4a188eaee8fc69420 (patch)
tree915472449c509dc7fd77f18fa43edecc46e56f46 /cmds/plugin-consoleonly/args.go
parent7880d9df6de1040258bea966f040e12be6205af1 (diff)
clean and rename examples
fix syntax try new goreadme remove autogenerated go readme.md Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/plugin-consoleonly/args.go')
-rw-r--r--cmds/plugin-consoleonly/args.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/cmds/plugin-consoleonly/args.go b/cmds/plugin-consoleonly/args.go
deleted file mode 100644
index dc4a322..0000000
--- a/cmds/plugin-consoleonly/args.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// This creates a simple hello world window
-package main
-
-import (
- "log"
- "git.wit.org/wit/gui"
- arg "github.com/alexflint/go-arg"
-)
-
-type LogOptions struct {
- LogFile string
- Verbose bool
- User string `arg:"env:USER"`
-}
-
-var args struct {
- LogOptions
- gui.GuiArgs
-}
-
-func init() {
- arg.MustParse(&args)
- log.Println("Toolkit = ", args.Toolkit)
-
- if (args.GuiDebug) {
- gui.DebugWindow()
- }
- if (args.GuiVerbose) {
- gui.SetDebug(true)
- }
-}