opencode-sync-plugin 0.2.0 → 0.2.1
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/{chunk-EFSO6MGO.js → chunk-QO5Y7TD5.js} +1 -0
- package/dist/cli.js +10 -7
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
__require,
|
|
3
4
|
clearConfig,
|
|
4
5
|
getConfig,
|
|
5
6
|
setConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QO5Y7TD5.js";
|
|
7
8
|
|
|
8
9
|
// src/cli.ts
|
|
9
10
|
import { readFileSync, existsSync } from "fs";
|
|
@@ -200,12 +201,14 @@ function help() {
|
|
|
200
201
|
}
|
|
201
202
|
function prompt(question) {
|
|
202
203
|
return new Promise((resolve) => {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
204
|
+
const readline = __require("readline");
|
|
205
|
+
const rl = readline.createInterface({
|
|
206
|
+
input: process.stdin,
|
|
207
|
+
output: process.stdout
|
|
208
|
+
});
|
|
209
|
+
rl.question(question, (answer) => {
|
|
210
|
+
rl.close();
|
|
211
|
+
resolve(answer.trim());
|
|
209
212
|
});
|
|
210
213
|
});
|
|
211
214
|
}
|
package/dist/config.js
CHANGED
package/dist/index.js
CHANGED