gpt-po 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/package.json +1 -1
- package/lib/src/index.js +6 -8
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/index.js
CHANGED
@@ -11,8 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
const commander_1 = require("commander");
|
14
|
-
const os_1 = require("os");
|
15
|
-
const path_1 = require("path");
|
16
14
|
const pkg = require("../package.json");
|
17
15
|
const sync_1 = require("./sync");
|
18
16
|
const translate_1 = require("./translate");
|
@@ -76,9 +74,9 @@ program
|
|
76
74
|
// open `systemprompt.txt` file by system text default editor
|
77
75
|
const copyFile = __dirname + "/systemprompt.txt";
|
78
76
|
// user home path
|
79
|
-
const
|
80
|
-
(0, utils_1.copyFileIfNotExists)(
|
81
|
-
(0, utils_1.openFileByDefault)(
|
77
|
+
const promptFile = (0, utils_1.findConfig)("systemprompt.txt");
|
78
|
+
(0, utils_1.copyFileIfNotExists)(promptFile, copyFile);
|
79
|
+
(0, utils_1.openFileByDefault)(promptFile);
|
82
80
|
});
|
83
81
|
// program command `userdict` with help text `open/edit user dictionary`
|
84
82
|
program
|
@@ -88,9 +86,9 @@ program
|
|
88
86
|
// open `dictionary.json` file by system text default editor
|
89
87
|
const copyFile = __dirname + "/dictionary.json";
|
90
88
|
// user home path
|
91
|
-
const
|
92
|
-
(0, utils_1.copyFileIfNotExists)(
|
93
|
-
(0, utils_1.openFileByDefault)(
|
89
|
+
const dictFile = (0, utils_1.findConfig)("dictionary.json");
|
90
|
+
(0, utils_1.copyFileIfNotExists)(dictFile, copyFile);
|
91
|
+
(0, utils_1.openFileByDefault)(dictFile);
|
94
92
|
});
|
95
93
|
program.parse(process.argv);
|
96
94
|
//# sourceMappingURL=index.js.map
|