allow empty password for database setup

This commit is contained in:
Izalia Mae 2024-01-29 19:55:02 -05:00
parent 6ab6343ae7
commit 116a04ce4d

View file

@ -129,8 +129,10 @@ def cli_setup(ctx: click.Context) -> None:
)
ctx.obj.config.pg_pass = click.prompt(
'User password: ',
hide_input = True
'User password',
hide_input = True,
show_default = False,
default = ctx.obj.config.pg_pass or ""
) or None
ctx.obj.config.save()