Skip to content

Commit 6795d13

Browse files
committed
add option to exit checkout command
1 parent 6a8cc5b commit 6795d13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/checkout/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7171

7272
case tea.KeyMsg:
7373
switch msg.Type {
74+
case tea.KeyCtrlC, tea.KeyEsc:
75+
return m, tea.Quit
7476
case tea.KeyRight:
7577
if m.step < 2 {
7678
m.step++

0 commit comments

Comments
 (0)