diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 11:28:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 11:28:43 -0500 |
| commit | 88d0ce908c76d98a29ab5ffc3417248f951493fb (patch) | |
| tree | b50a0917f1a1d713fdb5addc6e65dd2842b98fe9 /argv.SendStrings.go | |
| parent | 2b46985ae8def4ff5779fbc027a6ddbe7a1a6a8d (diff) | |
removing log from herev0.0.44
Diffstat (limited to 'argv.SendStrings.go')
| -rw-r--r-- | argv.SendStrings.go | 8 |
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, "'") |
