summaryrefslogtreecommitdiff
path: root/verifyApplication.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
committerJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
commit418f790437ac264ede889604f31e6d81c7d35cd0 (patch)
treed073e7933824c4ae815bda411bf1ee7441f4dd47 /verifyApplication.go
parent22fcb080548bc57847c2405d724e9f40364fa621 (diff)
compiles and does something. notsure
Diffstat (limited to 'verifyApplication.go')
-rw-r--r--verifyApplication.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/verifyApplication.go b/verifyApplication.go
index 7c79cd9..6b0291a 100644
--- a/verifyApplication.go
+++ b/verifyApplication.go
@@ -92,19 +92,19 @@ type mustParseI interface {
}
type parseFlagsI interface {
- ParseFlags([]string) error
+ ParseFlags() error
}
type writeHelpForAutocompleteI interface {
- WriteHelpForAutocomplete(string, ...string) error
+ WriteHelpForAutocomplete() error
}
type writeHelpForAutocompleteDebugI interface {
- WriteHelpForAutocompleteDebug(string, ...string) error
+ WriteHelpForAutocompleteDebug() error
}
type writeHelpForSubcommandI interface {
- WriteHelpForSubcommand(cmd string) error
+ WriteHelpForSubcommand() error
}
type writeHelpI interface {
@@ -163,8 +163,8 @@ type exitI interface {
func helpWriteHelpForSubcommand() {
fmt.Println("")
fmt.Println("// add this funcgion: this will print the help")
- fmt.Println("func (args) WriteHelpForSubcommand() error {")
- fmt.Println(" me.pp.WriteHelpForSubcommand(Stderr, me.argv.Cmd)")
+ fmt.Println("func (args) WriteHelpForSubcommandArgv() error {")
+ fmt.Println(" me.pp.WriteHelpForSubcommandArgv(me.argv)")
fmt.Println(" return nil")
fmt.Println("}")
fmt.Println("")
@@ -176,7 +176,7 @@ func helpWriteHelp() {
fmt.Println("")
fmt.Println("// add this funcgion: this will print the help")
fmt.Println("func (args) WriteHelp() error {")
- fmt.Println(" me.pp.WriteHelp(Stderr)")
+ fmt.Println(" me.pp.WriteHelpArgv(me.argv)")
fmt.Println(" return nil")
fmt.Println("}")
fmt.Println("")
@@ -187,8 +187,8 @@ func helpWriteHelp() {
func helpWriteHelpForAutocompleteDebug() {
fmt.Println("")
fmt.Println("// this will print the help for the subcmd")
- fmt.Println("func (args) WriteHelpForAutocompleteDebug(part string, subcmd ...string) error {")
- fmt.Println(" return argvpp.WriteHelpForAutocomplete(f, Stdout, part, subcmd...)")
+ fmt.Println("func (args) WriteHelpForAutocompleteDebugArgv() error {")
+ fmt.Println(" return argvpp.WriteHelpForAutocompleteArgv(me.argv)")
fmt.Println("}")
fmt.Println("")
fmt.Println("cp ~/go/src/go.wit.com/apps/forge/argv.template.go .")
@@ -201,8 +201,8 @@ func helpWriteHelpForAutocompleteDebug() {
func helpWriteHelpForAutocomplete() {
fmt.Println("")
fmt.Println("// this will print the help for the subcmd")
- fmt.Println("func (args) WriteHelpForAutocomplete(part string, subcmd ...string) error {")
- fmt.Println(" return argvpp.WriteHelpForAutocomplete(Stderr, Stdout, part, subcmd...)")
+ fmt.Println("func (args) WriteHelpForAutocompleteArgv() error {")
+ fmt.Println(" return argvpp.WriteHelpForAutocompleteArgv(me.argv)")
fmt.Println("}")
fmt.Println("")
fmt.Println("Just copy the argv.template.go file from forge")
@@ -214,8 +214,8 @@ func helpWriteHelpForAutocomplete() {
func parseFlagsHelp() {
fmt.Println("")
fmt.Println("// this function will send the current argv PB to go-args for parsing")
- fmt.Println("func (args) ParseFlags(flags []string) error {")
- fmt.Println(" arg.ParseFlags(flags)")
+ fmt.Println("func (args) ParseFlags() error {")
+ fmt.Println(" arg.ParseFlags(me.argv, &argv)")
fmt.Println("}")
fmt.Println("")