示例#1
0
def build_shell(verbose, **kwargs):
    check_docker_version(verbose)
    check_docker_compose_version(verbose)
    updated_kwargs = get_cached_params(kwargs)
    if read_from_cache_file('suppress_asciiart') is None:
        console.print(ASCIIART, style=ASCIIART_STYLE)
    if read_from_cache_file('suppress_cheatsheet') is None:
        console.print(CHEATSHEET, style=CHEATSHEET_STYLE)
    enter_shell_params = ShellBuilder(**filter_out_none(**updated_kwargs))
    build_image_checks(verbose, enter_shell_params)
示例#2
0
文件: breeze.py 项目: mhenc/airflow
def shell(verbose: bool):
    """Enters breeze.py environment. this is the default command use when no other is selected."""
    from airflow_breeze.cache import read_from_cache_file

    if verbose:
        console.print("\n[green]Welcome to breeze.py[/]\n")
        console.print(
            f"\n[green]Root of Airflow Sources = {__AIRFLOW_SOURCES_ROOT}[/]\n"
        )
    if read_from_cache_file('suppress_asciiart') is None:
        console.print(ASCIIART, style=ASCIIART_STYLE)
    if read_from_cache_file('suppress_cheatsheet') is None:
        console.print(CHEATSHEET, style=CHEATSHEET_STYLE)
    raise ClickException("\nPlease implement entering breeze.py\n")