You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/commands/generate.ts
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ generating app...
68
68
awsProfileToCopy: Flags.string({
69
69
char: 'p',
70
70
description:
71
-
"The AWS Profile to copy in the ~/.aws/credentials file and used to deploy the application. Defaults to the 'default' profile. Specify --no-copy-aws-profile to skip this step",
71
+
"The AWS Profile to copy in the ~/.aws/credentials file and used to deploy the application. Defaults to the 'default' profile. Specify --noCopyAwsProfile to skip this step",
72
72
default: 'default',
73
73
}),
74
74
noCopyAwsProfile: Flags.boolean({
@@ -84,11 +84,16 @@ generating app...
84
84
required: false,
85
85
default: false,
86
86
}),
87
+
generateAppDefinitionOnly: Flags.boolean({
88
+
description: 'Generates app definition only (run `@codegenie/cli generate` without `--description` to generate source code).',
@@ -173,8 +187,8 @@ For now you can open \`./${appDirRelative}\` in your favorite IDE like VS Code.
173
187
/**
174
188
* Checks if a .codegenie directory already exists so that it doesn't accidentally get overwritten.
175
189
*
176
-
* Users can specify --replace-app-definition if they would prefer to ignore this and replace the directory.
177
-
* @throws When a .codegenie directory exists and --replace-app-definition wasn't specified
190
+
* Users can specify --replaceAppDefinition if they would prefer to ignore this and replace the directory.
191
+
* @throws When a .codegenie directory exists and --replaceAppDefinition wasn't specified
178
192
*/
179
193
asynchandleExistingAppDefinition(){
180
194
const{ flags }=awaitthis.parse(Generate)
@@ -193,7 +207,7 @@ For now you can open \`./${appDirRelative}\` in your favorite IDE like VS Code.
193
207
code: 'CODEGENIE_DIR_EXISTS',
194
208
suggestions: [
195
209
'If you want to regenerate based on the existing App Definition defined in .codegenie: run the same command again without the `--description` flag.',
196
-
"If you'd rather replace the existing .codegenie directory with a new AI-generated App Definition, re-run the command again with the `--replace-app-definition` flag.",
210
+
"If you'd rather replace the existing .codegenie directory with a new AI-generated App Definition, re-run the command again with the `--replaceAppDefinition` flag.",
197
211
],
198
212
})
199
213
}
@@ -351,11 +365,11 @@ For now you can open \`./${appDirRelative}\` in your favorite IDE like VS Code.
`The first deploy may take up to 10 minutes, but you don't have to wait that long to get started! Open \`./${appDirRelative}\` in your favorite IDE like VS Code to explore your project source code. Tip: You may even be able to simply run \`code ./${appDirRelative}\` in a separate terminal to open it.`
0 commit comments