juice-email-cli 2.1.4 → 2.1.6
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/package.json +1 -1
- package/src/snippet.js +4 -4
package/package.json
CHANGED
package/src/snippet.js
CHANGED
|
@@ -302,7 +302,7 @@ async function promptConfigForInteractive(snippetDirYamlFiles) {
|
|
|
302
302
|
|
|
303
303
|
if (cwdConfig) {
|
|
304
304
|
choices.push({
|
|
305
|
-
name:
|
|
305
|
+
name: `[当前目录] ${cwdConfig.name} (优先)`,
|
|
306
306
|
value: { type: 'file', path: cwdConfig.path, name: cwdConfig.name },
|
|
307
307
|
});
|
|
308
308
|
}
|
|
@@ -312,7 +312,7 @@ async function promptConfigForInteractive(snippetDirYamlFiles) {
|
|
|
312
312
|
for (const f of snippetDirYamlFiles) {
|
|
313
313
|
const isDefault = f.name === defaultName;
|
|
314
314
|
choices.push({
|
|
315
|
-
name:
|
|
315
|
+
name: `[片段目录] ${f.name}${isDefault ? ' (默认)' : ''}`,
|
|
316
316
|
value: { type: 'file', path: f.path, name: f.name },
|
|
317
317
|
});
|
|
318
318
|
if (isDefault && !cwdConfig) {
|
|
@@ -321,8 +321,8 @@ async function promptConfigForInteractive(snippetDirYamlFiles) {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
choices.push(
|
|
324
|
-
{ name: '
|
|
325
|
-
{ name: '
|
|
324
|
+
{ name: '[自定义] 输入路径...', value: { type: 'custom' } },
|
|
325
|
+
{ name: '[跳过] 不使用项目配置', value: { type: 'skip' } },
|
|
326
326
|
);
|
|
327
327
|
|
|
328
328
|
const result = await select({
|