caroushell 0.1.2 → 0.1.3
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/dist/app.js +2 -2
- package/dist/spawner.js +3 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -151,8 +151,8 @@ class App {
|
|
|
151
151
|
this.terminal.write("\n");
|
|
152
152
|
this.keyboard.pause();
|
|
153
153
|
try {
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
154
|
+
const storeInHistory = await (0, spawner_1.runUserCommand)(cmd);
|
|
155
|
+
if (storeInHistory) {
|
|
156
156
|
await this.history.add(cmd);
|
|
157
157
|
}
|
|
158
158
|
}
|
package/dist/spawner.js
CHANGED
|
@@ -61,5 +61,7 @@ async function runUserCommand(command) {
|
|
|
61
61
|
proc.on("error", reject);
|
|
62
62
|
proc.on("close", () => resolve());
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
// Why save failed commands? Well eg sometimes we want to run a test
|
|
65
|
+
// many times until we fix it.
|
|
66
|
+
return true;
|
|
65
67
|
}
|