mnemonic icon indicating copy to clipboard operation
mnemonic copied to clipboard

Interactive Error Handling

Open cbzehner opened this issue 5 years ago • 0 comments

Hi, I just found mn and it looks quite useful, thanks for creating this and sharing it!

One papercut I ran across in using it was creating my initial data. I'm unable to edit something before I add it, and although the message sounds like it will be interactive, it actually just exits with an error code.

❯ mn edit notes
notes not found.  Would you like to add it to Mnemonic?
❯ ...

Would you be interested in a Pull Request to make this experience interactive?

  1. Prompt the user [y/n]
  2. The "no" case would exit without an error code
  3. The "yes" case would potentially a. Run the add command b. Run the edit command

cbzehner avatar Jun 27 '20 02:06 cbzehner