Skip to content

Commit 9c37940

Browse files
committed
return new checked out branch in response
1 parent 90963a7 commit 9c37940

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/checkout/main.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var (
2929
listTitleBarStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#000000")).Padding(1, 0)
3030
docStyle = lipgloss.NewStyle().Margin(1, 2)
3131

32-
inputStyle = lipgloss.NewStyle().Margin(1, 0)
32+
inputStyle = lipgloss.NewStyle().Margin(1, 0)
33+
successStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#95E745"))
3334
)
3435

3536
type model struct {
@@ -235,11 +236,13 @@ func main() {
235236
fail("Error: %s", err)
236237
}
237238

238-
p := tea.NewProgram(initialModel(branchTypes, jiraBoards), tea.WithAltScreen())
239+
p := tea.NewProgram(initialModel(branchTypes, jiraBoards))
239240
if _, err := p.Run(); err != nil {
240241
fmt.Println(err)
241242
os.Exit(1)
242243
}
244+
currentBranch, _ := git.GetCurrentGitBranch()
245+
fmt.Println(successStyle.Render("Now on branch " + currentBranch))
243246
}
244247

245248
func fail(format string, args ...interface{}) {

0 commit comments

Comments
 (0)