"""Argparser module for hub push"""
from ..helper import add_arg_group


def mixin_hub_pull_options_parser(parser):
    """Add the arguments for hub pull options to the parser
    :param parser: the parser configure
    """

    gp = add_arg_group(parser, title='Pull')
    gp.add_argument(
        '--install-requirements',
        action='store_true',
        default=False,
        help='If set, install `requirements.txt` in the Hub Executor bundle to local',
    ),
    gp.add_argument(
        '--force',
        action='store_true',
        default=False,
        help='If set, always pull the latest Hub Executor bundle even it exists on local',
    )


def mixin_hub_pull_parser(parser):
    """Add the arguments for hub pull to the parser
    :param parser: the parser configure
    """

    def hub_uri(uri: str) -> str:
        from ...hubble.helper import parse_hub_uri

        parse_hub_uri(uri)
        return uri

    parser.add_argument(
        'uri',
        type=hub_uri,
        help='The URI of the executor to pull (e.g., jinahub[+docker]://UUID8)',
    )
    mixin_hub_pull_options_parser(parser)

78cc19c553c4649092205956824634b88da3b21d
<mask token>

<mask token>


def mixin_hub_pull_options_parser(parser):
    """Add the arguments for hub pull options to the parser
    :param parser: the parser configure
    """
    gp = add_arg_group(parser, title='Pull')
    gp.add_argument('--install-requirements', action='store_true', default=
        False, help=
        'If set, install `requirements.txt` in the Hub Executor bundle to local'
        ),
    gp.add_argument('--force', action='store_true', default=False, help=
        'If set, always pull the latest Hub Executor bundle even it exists on local'
        )


<mask token>

<mask token>


def mixin_hub_pull_options_parser(parser):
    """Add the arguments for hub pull options to the parser
    :param parser: the parser configure
    """
    gp = add_arg_group(parser, title='Pull')
    gp.add_argument('--install-requirements', action='store_true', default=
        False, help=
        'If set, install `requirements.txt` in the Hub Executor bundle to local'
        ),
    gp.add_argument('--force', action='store_true', default=False, help=
        'If set, always pull the latest Hub Executor bundle even it exists on local'
        )


def mixin_hub_pull_parser(parser):
    """Add the arguments for hub pull to the parser
    :param parser: the parser configure
    """

    def hub_uri(uri: str) ->str:
        from ...hubble.helper import parse_hub_uri
        parse_hub_uri(uri)
        return uri
    parser.add_argument('uri', type=hub_uri, help=
        'The URI of the executor to pull (e.g., jinahub[+docker]://UUID8)')
    mixin_hub_pull_options_parser(parser)

<mask token>
from ..helper import add_arg_group


def mixin_hub_pull_options_parser(parser):
    """Add the arguments for hub pull options to the parser
    :param parser: the parser configure
    """
    gp = add_arg_group(parser, title='Pull')
    gp.add_argument('--install-requirements', action='store_true', default=
        False, help=
        'If set, install `requirements.txt` in the Hub Executor bundle to local'
        ),
    gp.add_argument('--force', action='store_true', default=False, help=
        'If set, always pull the latest Hub Executor bundle even it exists on local'
        )


def mixin_hub_pull_parser(parser):
    """Add the arguments for hub pull to the parser
    :param parser: the parser configure
    """

    def hub_uri(uri: str) ->str:
        from ...hubble.helper import parse_hub_uri
        parse_hub_uri(uri)
        return uri
    parser.add_argument('uri', type=hub_uri, help=
        'The URI of the executor to pull (e.g., jinahub[+docker]://UUID8)')
    mixin_hub_pull_options_parser(parser)

"""Argparser module for hub push"""
from ..helper import add_arg_group


def mixin_hub_pull_options_parser(parser):
    """Add the arguments for hub pull options to the parser
    :param parser: the parser configure
    """

    gp = add_arg_group(parser, title='Pull')
    gp.add_argument(
        '--install-requirements',
        action='store_true',
        default=False,
        help='If set, install `requirements.txt` in the Hub Executor bundle to local',
    ),
    gp.add_argument(
        '--force',
        action='store_true',
        default=False,
        help='If set, always pull the latest Hub Executor bundle even it exists on local',
    )


def mixin_hub_pull_parser(parser):
    """Add the arguments for hub pull to the parser
    :param parser: the parser configure
    """

    def hub_uri(uri: str) -> str:
        from ...hubble.helper import parse_hub_uri

        parse_hub_uri(uri)
        return uri

    parser.add_argument(
        'uri',
        type=hub_uri,
        help='The URI of the executor to pull (e.g., jinahub[+docker]://UUID8)',
    )
    mixin_hub_pull_options_parser(parser)
