Skip to content

Commit

Permalink
feat: trim space from commands
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Nov 8, 2024
1 parent 83c063d commit b4c7aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cmds/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmds
import (
"fmt"
"io"
"strings"

"github.com/charmbracelet/ssh"
"github.com/gleich/lumber/v3"
Expand All @@ -26,7 +27,7 @@ func Terminal(s ssh.Session, styles output.Styles) {
return
}

switch cmd {
switch strings.Trim(cmd, " ") {
case "":
case "exit":
return
Expand Down

0 comments on commit b4c7aba

Please sign in to comment.