MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetCleanOption

Method GetCleanOption

internal/tui/picker.go:396–410  ·  view source on GitHub ↗

GetCleanOption returns the selected clean option.

()

Source from the content-addressed store, hash-verified

394
395// GetCleanOption returns the selected clean option.
396func (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.
413func (p *PRDPicker) SetCleanResult(result *CleanResult) {

Calls

no outgoing calls

Tested by 2