import click

from cli import utils


@click.command(help='Validate config structure')
@click.option(
    '--full',
    is_flag=True,
    help='Check full config (generated by setup command).',
)
def validate(full: bool):
    if full:
        utils.print_bold('Validating full configuration for local deploy')
        utils.load_config()
    else:
        utils.print_bold('Validating basic configuration for local deploy')
        utils.load_basic_config()
    utils.print_success('Configuration is valid!')
