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
fix: read from stdin when resume path is a dash (#465)
* path cli arg overrides check for stdin being a pipe
* reading from stdin only when resume is specified as a dash
* using spawn to start the child process that runs the command. exporting memfs through IPC so it can be verified in tests
* updated docs
* mysterious update to package-lock
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,13 @@ When developing themes, simply change into your theme directory and run `resume
77
77
78
78
# resume data
79
79
80
-
Resume data is read from `stdin` if [`stdin.isTTY`](https://nodejs.org/api/tty.html#tty_readstream_istty) is falsy. Otherwise, the resume is read from `--path` as resolved from `process.cwd()`. `--type` defaults to `application/json`. Supported resume data mime types are:
80
+
- Setting `--resume -` tells the cli to read resume data from standard input (`stdin`), and defaults `--type` to `application/json`.
81
+
- Setting `--resume <path>` reads resume data from `path`.
82
+
- Leaving `--resume` unset defaults to reading from `resume.json` on the current working directory.
0 commit comments