Skip to content

Commit

Permalink
feat: add auto-accept config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-v4s committed Aug 28, 2024
1 parent e3b3e15 commit 4bc587a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/qualibrate_app/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ def write_config(
default=QUALIBRATE_PATH / DEFAULT_CONFIG_FILENAME,
show_default=True,
)
@click.option(
"--auto-accept",
type=bool,
is_flag=True,
default=False,
show_default=True,
)
@click.option(
"--overwrite",
type=bool,
Expand Down Expand Up @@ -221,6 +228,7 @@ def write_config(
def config_command(
ctx: click.Context,
config_path: Path,
auto_accept: bool,
overwrite: bool,
static_site_files: Path,
storage_type: StorageType,
Expand All @@ -246,4 +254,4 @@ def config_command(
)
if qss is None:
return
write_config(config_file, common_config, qss)
write_config(config_file, common_config, qss, confirm=not auto_accept)

0 comments on commit 4bc587a

Please sign in to comment.