(commandOptions, rawArgs)
| 57 | beforeRun: mergeBlueprintOptions, |
| 58 | |
| 59 | run(commandOptions, rawArgs) { |
| 60 | if (this.isViteProject && commandOptions.dummy) { |
| 61 | return Promise.reject( |
| 62 | new SilentError('The `--dummy` option to `ember generate` is not supported in Vite-based projects.') |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | let blueprintName = rawArgs[0]; |
| 67 | |
| 68 | if (!blueprintName) { |
| 69 | return Promise.reject(new SilentError(UNKNOWN_BLUEPRINT_ERROR)); |
| 70 | } |
| 71 | |
| 72 | let taskArgs = { |
| 73 | args: rawArgs, |
| 74 | }; |
| 75 | |
| 76 | if (this.settings && this.settings.usePods && !commandOptions.classic) { |
| 77 | commandOptions.pod = true; |
| 78 | } |
| 79 | |
| 80 | if (commandOptions.in) { |
| 81 | let relativePath = path.relative(this.project.root, commandOptions.in); |
| 82 | commandOptions.in = path.resolve(relativePath); |
| 83 | } |
| 84 | |
| 85 | let taskOptions = merge(taskArgs, commandOptions || {}); |
| 86 | |
| 87 | if (this.project.initializeAddons) { |
| 88 | this.project.initializeAddons(); |
| 89 | } |
| 90 | |
| 91 | return this.runTask('GenerateFromBlueprint', taskOptions); |
| 92 | }, |
| 93 | |
| 94 | printDetailedHelp(options) { |
| 95 | this.ui.writeLine(this.getAllBlueprints(options)); |
nothing calls this directly
no test coverage detected