directus-template-cli 0.5.0-beta.13 → 0.5.0-beta.14
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/commands/apply.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/commands/apply.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const inquirer = tslib_1.__importStar(require("inquirer"));
|
|
6
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
6
7
|
const customFlags = tslib_1.__importStar(require("../flags/common"));
|
|
7
8
|
const constants_1 = require("../lib/constants");
|
|
8
9
|
const apply_flags_1 = require("../lib/load/apply-flags");
|
|
@@ -167,7 +168,10 @@ class ApplyCommand extends core_1.Command {
|
|
|
167
168
|
}
|
|
168
169
|
const { selectedTemplate } = await inquirer.prompt([
|
|
169
170
|
{
|
|
170
|
-
choices: templates.map(t => ({
|
|
171
|
+
choices: templates.map(t => ({
|
|
172
|
+
name: `${t.templateName} (${path.basename(t.directoryPath)})`,
|
|
173
|
+
value: t,
|
|
174
|
+
})),
|
|
171
175
|
message: 'Multiple templates found. Please select one:',
|
|
172
176
|
name: 'selectedTemplate',
|
|
173
177
|
type: 'list',
|
package/oclif.manifest.json
CHANGED