Add in return for Abort on MultiSelectionPrompt#1001
Add in return for Abort on MultiSelectionPrompt#1001BenjaminMichaelis wants to merge 3 commits intospectreconsole:mainfrom
Conversation
|
@patriksvensson To follow up with my question on this issue, is this all you are looking for a return of the Result? Or also some handling of some sort? |
|
We call
What do you think? |
|
I think that makes sense, Let me check that I fully understand what you mean by trying to implement it |
|
How does this look? @patriksvensson |
|
@BenjaminMichaelis I think it looks good! Would it be possible to add a test as well? |
|
The build problems should have been resolved now. |
23e8d62 to
235e251
Compare
|
Just rebased @patriksvensson, added in a small test, but as I am still getting used to this library, not positive if there are better things I should be testing for/or how to since this feels minor. I'm not positive how to get the ListPromptInputResult out from the test view since we return a state |
|
@BenjaminMichaelis Your test actually showed that there is a flaw in the design. @nils-a @phil-scott-78 Any suggestions on how we could solve this in an extendable way? |
|
Ahh, to make sure I am following, so the state index should still be 0 in fact like the test shows but in addition be letting the caller know that it didn't move because this was an aborted case? |
|
@BenjaminMichaelis Correct, but I think we need to discuss how this should be done. Would like some input from the other maintainers about this. |
|
@BenjaminMichaelis I'm sorry, but turns out there already is an active pull request for this item: #711 I'm sorry I didn't realize this before, I could have saved you from wasting your time 😞 |
Aw bummer, I'll keep looking for more to do :) |
|
@patriksvensson Am I looking at this right and seeing #711 was never finished? If so, could @BenjaminMichaelis submit his changes again? This feature is still not implemented, and it looks like Benjamin already got this figured out. |
Fixes #851