@xfey/tutti 0.1.25 → 0.1.26
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/server-shell/cli/cli.js +17 -0
- package/package.json +1 -1
|
@@ -91,6 +91,22 @@ function helpForTopic(topic) {
|
|
|
91
91
|
}
|
|
92
92
|
return HELP_TEXT;
|
|
93
93
|
}
|
|
94
|
+
function restoreInteractiveInput() {
|
|
95
|
+
if (!process.stdin.isTTY) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (process.stdin.isRaw === true) {
|
|
99
|
+
process.stdin.setRawMode(false);
|
|
100
|
+
}
|
|
101
|
+
process.stdin.removeAllListeners("keypress");
|
|
102
|
+
process.stdin.pause();
|
|
103
|
+
}
|
|
104
|
+
function exitAfterBackgroundLaunch() {
|
|
105
|
+
restoreInteractiveInput();
|
|
106
|
+
process.stdout.write("\n", () => {
|
|
107
|
+
process.exit(0);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
94
110
|
async function runProviderSetupCommand(target) {
|
|
95
111
|
const project = resolveExistingProjectContext({
|
|
96
112
|
...(target === undefined ? {} : { target }),
|
|
@@ -123,6 +139,7 @@ try {
|
|
|
123
139
|
}
|
|
124
140
|
else {
|
|
125
141
|
await runBackgroundLaunchCommand(command);
|
|
142
|
+
exitAfterBackgroundLaunch();
|
|
126
143
|
}
|
|
127
144
|
break;
|
|
128
145
|
case "internal-host-run":
|