testdriverai 4.0.15 → 4.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -748,7 +748,14 @@ ${yaml.dump(step)}
|
|
|
748
748
|
|
|
749
749
|
|
|
750
750
|
const promptUser = () => {
|
|
751
|
-
|
|
751
|
+
// Case where it doesn't execute the command but pastes the clipboard content
|
|
752
|
+
if (rl.on) {
|
|
753
|
+
rl.on('paste', () => {
|
|
754
|
+
const clipboardContent = require('clipboardy').readSync();
|
|
755
|
+
rl.write(clipboardContent);
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
rl.prompt(true);
|
|
752
759
|
}
|
|
753
760
|
|
|
754
761
|
const iffy = async (condition, then, otherwise, depth) => {
|