Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dlt_init_openapi/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _init_command_wrapped(

try:

# synch rest api
# sync rest api
update_rest_api.update_rest_api(force=update_rest_api_source)

config = _load_config(
Expand All @@ -117,7 +117,9 @@ def _init_command_wrapped(
)

if config.project_dir.exists():
if not questionary.confirm(
if not interactive:
logger.info("Non interactive mode selected, overwriting existing source.")
elif not questionary.confirm(
f"Directory {config.project_dir} exists, do you want to continue and update the generated files? "
+ "This will overwrite your changes in those files."
).ask():
Expand Down