Skip to content

Interactive Error Handling #25

Description

@cbzehner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions