GetCleanOption returns the selected clean option.
()
| 394 | |
| 395 | // GetCleanOption returns the selected clean option. |
| 396 | func (p *PRDPicker) GetCleanOption() CleanOption { |
| 397 | if p.cleanConfirmation == nil { |
| 398 | return CleanOptionCancel |
| 399 | } |
| 400 | switch p.cleanConfirmation.SelectedIdx { |
| 401 | case 0: |
| 402 | return CleanOptionRemoveAll |
| 403 | case 1: |
| 404 | return CleanOptionWorktreeOnly |
| 405 | case 2: |
| 406 | return CleanOptionCancel |
| 407 | default: |
| 408 | return CleanOptionCancel |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | // SetCleanResult sets the clean result for display. |
| 413 | func (p *PRDPicker) SetCleanResult(result *CleanResult) { |
no outgoing calls