We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e439c4 + 8754ffd commit 42067f0Copy full SHA for 42067f0
dlt_init_openapi/cli/__init__.py
@@ -99,7 +99,7 @@ def _init_command_wrapped(
99
100
try:
101
102
- # synch rest api
+ # sync rest api
103
update_rest_api.update_rest_api(force=update_rest_api_source)
104
105
config = _load_config(
@@ -117,7 +117,9 @@ def _init_command_wrapped(
117
)
118
119
if config.project_dir.exists():
120
- if not questionary.confirm(
+ if not interactive:
121
+ logger.info("Non interactive mode selected, overwriting existing source.")
122
+ elif not questionary.confirm(
123
f"Directory {config.project_dir} exists, do you want to continue and update the generated files? "
124
+ "This will overwrite your changes in those files."
125
).ask():
0 commit comments