#!/usr/bin/env python3

import click
import jinjaroot

@click.group(help="jinjaroot command-line client")
def cli():
    pass

@click.command(help="Generate code recursively starting from the current directory")
@click.option('--dry', is_flag=True, help='Dry run do not actually modify')
def generate(dry):
    jinjaroot.generate(dry=dry)

@click.command(help="Verify that the code is up to date - recursively starting fro the current directory")
def verify():
    jinjaroot.verify()

cli.add_command(generate)
cli.add_command(verify)

if __name__ == '__main__':
    cli()