Exemplo n.º 1
0
def create_bentoml_cli():
    _cli = create_bento_service_cli()

    # Commands created here aren't mean to be used from generated service archive. They
    # are used as part of BentoML cli commands only.

    deployment_sub_command = get_deployment_sub_command()
    config_sub_command = get_configuration_sub_command()
    _cli.add_command(config_sub_command)
    _cli.add_command(deployment_sub_command)

    return _cli
Exemplo n.º 2
0
def create_bentoml_cli():
    _cli = create_bento_service_cli()

    # Commands created here aren't mean to be used from generated BentoService CLI when
    # installed as PyPI package. The are only used as part of BentoML cli command.

    deployment_sub_command = get_deployment_sub_command()
    config_sub_command = get_configuration_sub_command()
    _cli.add_command(config_sub_command)
    _cli.add_command(deployment_sub_command)

    return _cli
Exemplo n.º 3
0
def create_bentoml_cli():
    # pylint: disable=unused-variable

    _cli = create_bento_service_cli()

    # Commands created here aren't mean to be used from generated BentoService CLI when
    # installed as PyPI package. The are only used as part of BentoML cli command.

    config_sub_command = get_configuration_sub_command()
    aws_sagemaker_sub_command = get_aws_sagemaker_sub_command()
    aws_lambda_sub_command = get_aws_lambda_sub_command()
    deployment_sub_command = get_deployment_sub_command()
    add_bento_sub_command(_cli)
    _cli.add_command(config_sub_command)
    _cli.add_command(aws_sagemaker_sub_command)
    _cli.add_command(aws_lambda_sub_command)
    _cli.add_command(deployment_sub_command)

    return _cli