I'm working on connecting the CLI up to VSCode, and I want to enable live task previews as the user is working. Currently the CLI can only read from files on disk, so before the preview can be updated the task file needs to be saved to disk.
Adding a
--stdin
argument to
mechanic tasks preview
would allow me to bundle the unsaved task file in memory and pass it directly to the CLI. That way, I can avoid the need to autosave the task file as the user is working, which feels rather intrusive to me.