We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e370363 commit 9380ad3Copy full SHA for 9380ad3
seshcli/connect.go
@@ -2,7 +2,6 @@ package seshcli
2
3
import (
4
"errors"
5
- "fmt"
6
"strings"
7
8
"github.com/joshmedeski/sesh/connector"
@@ -39,12 +38,11 @@ func Connect(c connector.Connector, i icon.Icon) *cli.Command {
39
38
}
40
opts := model.ConnectOpts{Switch: cCtx.Bool("switch"), Command: cCtx.String("command")}
41
trimmedName := i.RemoveIcon(name)
42
- if connection, err := c.Connect(trimmedName, opts); err != nil {
43
- // TODO: print to logs?
+ if _, err := c.Connect(trimmedName, opts); err != nil {
+ // TODO: add to logging
44
return err
45
} else {
46
- // TODO: create a message that is helpful to the end user
47
- fmt.Println(connection)
48
return nil
49
50
},
0 commit comments