*
Jes Olson j3s@c3f.net
Tue, 27 Sep 2022 23:28:00 -0500
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
shell/shell.go
→
shell/shell.go
@@ -84,7 +84,7 @@ utils.BluePrintln("-> " + scriptPath)
lastScriptPath = scriptPath } - fmt.Printf("$ %s\n", cmdName) + fmt.Printf("$ %s\n", fullCmd) // todo: better colorz idk utils.BluePrintln("$ " + cmdName) err = r.Run(ctx, stmt) if err != nil {@@ -117,8 +117,6 @@
func commandName(statement *syntax.Stmt) string { b := new(bytes.Buffer) syntax.NewPrinter().Print(b, statement) - command := b.String() - command = strings.Trim(command, "\n ") return b.String() }