Skip to content

Commit

Permalink
fix: don't output text on connect
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Aug 23, 2024
1 parent e370363 commit 9380ad3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions seshcli/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package seshcli

import (
"errors"
"fmt"
"strings"

"github.com/joshmedeski/sesh/connector"
Expand Down Expand Up @@ -39,12 +38,11 @@ func Connect(c connector.Connector, i icon.Icon) *cli.Command {
}
opts := model.ConnectOpts{Switch: cCtx.Bool("switch"), Command: cCtx.String("command")}
trimmedName := i.RemoveIcon(name)
if connection, err := c.Connect(trimmedName, opts); err != nil {
// TODO: print to logs?
if _, err := c.Connect(trimmedName, opts); err != nil {
// TODO: add to logging
return err
} else {
// TODO: create a message that is helpful to the end user
fmt.Println(connection)
// TODO: add to logging
return nil
}
},
Expand Down

0 comments on commit 9380ad3

Please sign in to comment.