Skip to content

Commit 48aed4d

Browse files
authored
remove --overwrite flag from help message for overwrite behaviour (#76)
Completes [ENT-158](https://linear.app/hasura/issue/ENT-158/remove-overwrite-flag-suggestion-from-overwrite-hint)
1 parent 639a2e3 commit 48aed4d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Extend `@save` annotation support for user defined type (types, interfaces, classes) ([#71](https://github.com/hasura/ndc-open-api-lambda/pull/71))
6+
- Remove `--overwrite` flag from help for overwrite behaviour ([#76](https://github.com/hasura/ndc-open-api-lambda/pull/76))
67

78
## [[1.2.0](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v1.2.0)] 2024-12-11
89

src/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ export async function runApp(args: types.GenerateCodeInput) {
1010
if (!context.getInstance().isOverwriteFilesEnabled()) {
1111
if (fs.existsSync(context.getInstance().getApiFilePath())) {
1212
logger.fatal(
13-
`Error: overwriting is disabled and api.ts file already exists at ${context.getInstance().getApiFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
13+
`Error: overwriting is disabled and api.ts file already exists at ${context.getInstance().getApiFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true`,
1414
);
1515
exit(0);
1616
}
1717
if (fs.existsSync(context.getInstance().getFunctionsFilePath())) {
1818
logger.fatal(
19-
`Error: overwriting is disabled and functions.ts file already exists at ${context.getInstance().getFunctionsFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
19+
`Error: overwriting is disabled and functions.ts file already exists at ${context.getInstance().getFunctionsFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true`,
2020
);
2121
exit(0);
2222
}

0 commit comments

Comments
 (0)