You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default behavior is to open a tmp file on an editor and return the string value
should have a way to set a custom file to edit
behavior 1: open tmp file with editor, return string value to caller
allow pre-defined text on file
behavior 2: allow user to edit file content before saving
e.g. export method, where you set lots of options and then can edit the final file
should allow user to skip editing
can be implemented with (Confirm + Behavior 1): Do you want to review the file? (y/N) + behavior 1 with pre-defined text on file
behavior 3: allow user to edit existing file
e.g. do you want to edit file? -> inquire handles the logic to properly open the file
inquire's role on this use-case is not really related to "interactive prompts"
the user should just use a Confirm and open the file themselves
The behavior I'm looking for is similar to Github's CLI.
Basically something like this:
? Description: [(e) to launch nano, enter to skip]
after the user inputs: it calls the formatter, having this by default:
? Description: <received>
or, if skipped:
? Description: <skipped>
The text was updated successfully, but these errors were encountered: