Skip to content

Commit

Permalink
Add Session.GetSessionID (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong authored Nov 16, 2023
1 parent 7aa1d7e commit bdf94bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Session interface {
SendText(s string) error
Activate(selectTab, orderWindowFront bool) error
SplitPane(opts SplitPaneOptions) (Session, error)
GetSessionID() string
}

// SplitPaneOptions for customizing the new pane session.
Expand Down Expand Up @@ -90,3 +91,7 @@ func (s *session) SplitPane(opts SplitPaneOptions) (Session, error) {
id: spResp.GetSessionId()[0],
}, nil
}

func (s *session) GetSessionID() string {
return s.id
}

0 comments on commit bdf94bb

Please sign in to comment.