1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

renamed config-dump option --verbose to --full

This commit is contained in:
Alexander Graf 2020-08-26 23:14:27 +02:00
parent 5c0efe82cf
commit 190e7a709b

View File

@ -299,15 +299,15 @@ def config_update(verbose=False, delete_objects=False, dry_run=False, file=None)
@mailu.command()
@click.option('-v', '--verbose', is_flag=True)
@click.option('-f', '--full', is_flag=True)
@click.option('-s', '--secrets', is_flag=True)
@flask_cli.with_appcontext
def config_dump(verbose=False, secrets=False):
def config_dump(full=False, secrets=False):
"""dump configuration as YAML-formatted data to stdout"""
config = {}
for section, model in yaml_sections:
dump = [item.to_dict(verbose, secrets) for item in model.query.all()]
dump = [item.to_dict(full, secrets) for item in model.query.all()]
if len(dump):
config[section] = dump