Renée Kooi 0ca696d118
Let users specify custom Ask message on CLI (#126)
* 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>
2019-03-06 13:38:06 +01:00
..
2019-02-13 14:34:53 +01:00
2018-01-19 23:06:16 +01:00