summaryrefslogtreecommitdiff
path: root/argv.SendStrings.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.SendStrings.go')
-rw-r--r--argv.SendStrings.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/argv.SendStrings.go b/argv.SendStrings.go
index 4192ba0..b523120 100644
--- a/argv.SendStrings.go
+++ b/argv.SendStrings.go
@@ -8,8 +8,6 @@ import (
"fmt"
"os"
"strings"
-
- "go.wit.com/log"
)
// the application must send a string "help run list"
@@ -33,7 +31,7 @@ func (pb *Argv) SendStrings(parts []string) {
}
all = append(all, part)
}
- fmt.Printf("%s", strings.Join(all, " "))
+ pb.Stdout = fmt.Sprintf("%s", strings.Join(all, " "))
}
// try out a new name. also, this whole thing is dumb and needs to be redone
@@ -45,9 +43,9 @@ func (pb *Argv) SubCommand(cmd ...string) {
if me.examples == nil {
pb.Debugf("WRITE DEBUG: argv.Examples() not defined")
} else {
- pb.Stderr += log.Sprintf("Examples:\n")
+ pb.Stderr += fmt.Sprintf("Examples:\n")
for _, line := range strings.Split(me.examples(), "\n") {
- pb.Stderr += log.Sprintf(" %s\n", line)
+ pb.Stderr += fmt.Sprintf(" %s\n", line)
}
}
partial := strings.Trim(pb.Partial, "'")