summaryrefslogtreecommitdiff
path: root/gui.go
blob: 242efa948a5bda1eb6b14d575e44ebbc46f91911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package argvpb

import (
	"fmt"
	"os"

	"go.wit.com/lib/cobol"
)

// this has been deprecated
// moved to go.wit.com/lib/fhelp for now

var prepGui *GuiPrep

type GuiPrep struct {
}

func Gui() *GuiPrep {
	workInProgress()
	return nil
}

func (g *GuiPrep) Start() error {
	workInProgress()
	return nil
}

// provides a runtime warning to the user that the app was compiled but lacks working features
func workInProgress() {
	s := "Mon Oct 13 10:48:16 CDT 2025"
	fmt.Println(cobol.Time(s) + ": " + os.Args[0] + ": argv features are disabled")
	fmt.Println(cobol.Time(s) + ": argv features are under active development")
	fmt.Println(cobol.Time(s) + ":")
	fmt.Println(cobol.Time(s) + ": argv Gui() support has been moved to go.wit.com/lib/fhelp")
	fmt.Println(cobol.Time(s) + ": Change your code. Example code is here:")
	fmt.Println(cobol.Time(s) + ": go.wit.com/apps/forge/argv.go")
	fmt.Println(cobol.Time(s) + ": go.wit.com/apps/forge/main.go")
	fmt.Println(cobol.Time(s) + ":")
	// panic("deprecated")
}