Skip to content

Commit 9380ad3

Browse files
committed
fix: don't output text on connect
1 parent e370363 commit 9380ad3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

seshcli/connect.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package seshcli
22

33
import (
44
"errors"
5-
"fmt"
65
"strings"
76

87
"github.com/joshmedeski/sesh/connector"
@@ -39,12 +38,11 @@ func Connect(c connector.Connector, i icon.Icon) *cli.Command {
3938
}
4039
opts := model.ConnectOpts{Switch: cCtx.Bool("switch"), Command: cCtx.String("command")}
4140
trimmedName := i.RemoveIcon(name)
42-
if connection, err := c.Connect(trimmedName, opts); err != nil {
43-
// TODO: print to logs?
41+
if _, err := c.Connect(trimmedName, opts); err != nil {
42+
// TODO: add to logging
4443
return err
4544
} else {
46-
// TODO: create a message that is helpful to the end user
47-
fmt.Println(connection)
45+
// TODO: add to logging
4846
return nil
4947
}
5048
},

0 commit comments

Comments
 (0)