mirror of
https://github.com/clinicjs/node-clinic.git
synced 2026-01-25 16:43:42 +00:00
* Let users specify custom Ask message on CLI Opens the $EDITOR in order to add a message. A temporary file is placed in `profiledir/ASK_MESSAGE`. If the profile is super broken and didn't output a directory, it uses a temporary file … somewhere (whatever the `tmp` module decides to do). * handle empty message * Expand initial message and fix trailing newlines * Ask usability updates - `getAskMessage` gets its own file - vim starts in insert mode with the cursor at the end of the file - VS Code forks and returns control to the CLI on start, so we can't easily wait for it to exit; instead, we wait for user confirmation if the editor closed within 2 seconds without updating the ASK_MESSAGE file. * reword to avoid 'no quotes' stuff Co-Authored-By: goto-bus-stop <renee@kooi.me>