Ejemplo n.º 1
0
def init_command(project_directory, minimal: bool, template: str):
    """Create a new Feast repository"""
    if not project_directory:
        project_directory = generate_project_name()

    if minimal:
        template = "minimal"

    init_repo(project_directory, template)
Ejemplo n.º 2
0
def init_command(project_directory, minimal: bool, template: str):
    """Create a new Feast repository"""
    if not project_directory:
        project_directory = generate_project_name()
    if template and minimal:
        from colorama import Fore, Style

        click.echo(
            f"Please select either a {Style.BRIGHT + Fore.GREEN}template{Style.RESET_ALL} or "
            f"{Style.BRIGHT + Fore.GREEN}minimal{Style.RESET_ALL}, not both")
        exit(1)

    if minimal:
        template = "minimal"

    init_repo(project_directory, template)