Get NodeJS spawn to show ddev import-db progress #6483
-
Hi! I'm tinkering with nodejs and trying to get node to execute some ddev commands. If I run DDEV import-db --file=somefile.sql then I get a nice progress bar that shows me how long the import may take. Here's a snippet of the code. In all 3 console.logs I get nothing but the final message.
I have looked at the DDEV source and it seems to use pv (Pipe Viewer) to show the progress. Line 746 in 4e22fe8 I would expect that to return something to stdout. But allas. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please test: |
Beta Was this translation helpful? Give feedback.
-
This works:
|
Beta Was this translation helpful? Give feedback.
Hi @Mathijs-Zuiderlicht,
Please test: