Skip to content

Commit c10e564

Browse files
committed
improve output
1 parent 56670e8 commit c10e564

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/commands/generate.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ generating app...
149149
})
150150

151151
const appName = await this.getAppName({ appDir })
152+
const appDirRelative = getAppOutputDir({ appName, absolute: false })
153+
152154
if (deploy && !awsCredentialsFileExists()) {
153-
const appDirRelative = getAppOutputDir({ appName, absolute: false })
154155
this.log(`The project has successfully been generated and downloaded to \`./${appDirRelative}\`.
155156
156157
The project wasn't able to be automatically built and deployed to AWS because the AWS CLI isn\'t set up on this machine. Install the AWS CLI and then run \`npm run init:dev\` inside the \`./${appDirRelative}\` directory.
@@ -171,6 +172,14 @@ For now you can open \`./${appDirRelative}\` in your favorite IDE like VS Code.
171172

172173
if (deploy) {
173174
await this.runInitDev({ appDir, appName })
175+
} else {
176+
this.log(`The project has successfully been generated and downloaded to \`./${appDirRelative}\`. 🎉`)
177+
return {
178+
description,
179+
deploy,
180+
awsProfileToCopy,
181+
appDir,
182+
}
174183
}
175184

176185
return {
@@ -229,7 +238,7 @@ For now you can open \`./${appDirRelative}\` in your favorite IDE like VS Code.
229238
async generateAppDefinition({ appName, appDir }: { appName: string; appDir: string }): Promise<{ appName: string; appDescription: string }> {
230239
const { flags } = await this.parse(Generate)
231240
const { description } = flags
232-
ux.action.start('🧞 Generating App Definition. This may take several minutes depending on the complexity of the app')
241+
ux.action.start('🧞 Generating App Definition. This may take a minute')
233242
try {
234243
const output = await axios.post('/app-definition-generator', {
235244
name: appName,

0 commit comments

Comments
 (0)