summaryrefslogtreecommitdiff
path: root/sendStrings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
committerJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
commit6a62be781be462c769bb1f61198ea584284e6bed (patch)
tree73809b1b12924f3247fdc4ab6fc1809a9068c4c5 /sendStrings.go
parent5d2788edbc203fdb3b99d073e507962cb0f0e6ac (diff)
rename that stupid variable finallyv0.0.37
Diffstat (limited to 'sendStrings.go')
-rw-r--r--sendStrings.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/sendStrings.go b/sendStrings.go
index 78b7a6c..98ab7fa 100644
--- a/sendStrings.go
+++ b/sendStrings.go
@@ -36,17 +36,17 @@ func (pb *Auto) SendStrings(parts []string) {
// pb.Debugf("TODO: show extended help here '%s' '%s' %v dur=%v\n", pb.Arg0, pb.Arg1, pb.Argv, config.FormatDuration(dur))
// pb.PrintDebug()
// fmt.Println(" ")
- if myAuto.pp == nil {
- pb.Debugf("myAuto.pp == nil")
+ if me.pp == nil {
+ pb.Debugf("me.pp == nil")
} else {
- pb.Debugf("myAuto.pp != nil")
+ pb.Debugf("me.pp != nil")
if pb.Fast {
// this means the user is pressing tab. no longer doing stderr
} else {
if pb.Cmd == "" {
- myAuto.pp.WriteHelp(os.Stderr)
+ me.pp.WriteHelp(os.Stderr)
} else {
- myAuto.pp.WriteHelpForSubcommand(os.Stderr, pb.Cmd)
+ me.pp.WriteHelpForSubcommand(os.Stderr, pb.Cmd)
}
}
}
@@ -86,7 +86,7 @@ func (pb *Auto) GenerateSubCommandStrings(cmd ...string) {
func (pb *Auto) SubCommand(cmd ...string) {
partial := strings.Trim(pb.Partial, "'")
if pb.Debug {
- if myAuto.examples == nil {
+ if me.examples == nil {
pb.Debugf("WRITE DEBUG: argv.Examples() not defined")
// log.Fprintf(os.Stderr, "\n")
// log.Fprintf(os.Stderr, "examples was nil\n")
@@ -95,18 +95,18 @@ func (pb *Auto) SubCommand(cmd ...string) {
log.Fprintf(os.Stderr, "\n")
log.Fprintf(os.Stderr, "\n")
log.Fprintf(os.Stderr, "Examples:\n")
- for _, line := range strings.Split(myAuto.examples(), "\n") {
+ for _, line := range strings.Split(me.examples(), "\n") {
log.Fprintf(os.Stderr, " %s\n", line)
}
// log.Fprintf(os.Stderr, "\n")
}
- myAuto.pp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, partial, cmd...)
- // myAuto.pp.GetUsageForSubcommand(os.Stdout, os.Stderr, partial, cmd)
- // myAuto.pp.GetUsageForSubcommand(os.Stdout, nil, partial, cmd)
+ me.pp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, partial, cmd...)
+ // me.pp.GetUsageForSubcommand(os.Stdout, os.Stderr, partial, cmd)
+ // me.pp.GetUsageForSubcommand(os.Stdout, nil, partial, cmd)
} else {
f, _ := os.OpenFile("/tmp/outlook", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
- myAuto.pp.WriteHelpForAutocomplete(f, os.Stdout, partial, cmd...)
- // myAuto.pp.GetUsageForSubcommand(os.Stdout, nil, partial, cmd)
+ me.pp.WriteHelpForAutocomplete(f, os.Stdout, partial, cmd...)
+ // me.pp.GetUsageForSubcommand(os.Stdout, nil, partial, cmd)
}
os.Exit(0)
}