fix(md prompter): accessible prompt allows blank

Allow the accessible markdownEditor prompt to be blank when the blank
comes from the result of an interactive session with an editor, even when
blankAllowed is false.

This behavior aligns the accessible prompter with the behavior of the
current standard prompter.
This commit is contained in:
Kynan Ware 2025-03-31 15:58:20 -06:00
parent 7b0c09541d
commit e973ee332d

View file

@ -253,11 +253,6 @@ func (p *huhPrompter) MarkdownEditor(prompt, defaultValue string, blankAllowed b
return "", err
}
// TODO: blank not allowed
if !blankAllowed && defaultValue == "" {
panic("blank not allowed and no default value")
}
return text, nil
}