# Path: birdy/cli/misc.py
# def get_ssl_verify():  # noqa: D103
#     value = os.environ.get("WPS_SSL_VERIFY", "True")
#     if value.lower() == "true":
#         verify = True
#     elif value.lower() == "false":
#         import urllib3
# 
#         urllib3.disable_warnings()
#         click.echo(
#             "Warning: Unverified HTTPS request is being made."
#             " Adding certificate verification is strongly advised.\n"
#         )
#         verify = False
#     else:
#         verify = value
#     return verify
# 
# Path: birdy/cli/types.py
# COMPLEX = ComplexParamType()
# 
# Path: birdy/exceptions.py
# class ConnectionError(click.ClickException):  # noqa: D101
#     pass


import os
import click
from collections import OrderedDict
from jinja2 import Environment, PackageLoader
from owslib.wps import WebProcessingService
from requests.exceptions import SSLError
from birdy.cli.misc import get_ssl_verify
from birdy.cli.types import COMPLEX
from birdy.exceptions import ConnectionError

    @staticmethod
    def format_command_help(process):  # noqa: D102
        return "{}: {}".format(
            process.title or process.identifier, process.abstract or ""
        )

    @staticmethod
    def get_param_default(param):  # noqa: D102
        if "ComplexData" in param.dataType:
            # TODO: get default value of complex type
            default = None
        elif "BoundingBoxData" in param.dataType:
            # TODO: get default value of bbox
            default = None
        else:
            default = getattr(param, "defaultValue", None)
        return default

    @staticmethod
    def get_param_type(param):  # noqa: D102
        if param.dataType is None:
            param_type = click.STRING
        elif "boolean" in param.dataType:
            param_type = click.BOOL
        elif "integer" in param.dataType:
            param_type = click.INT
        elif "float" in param.dataType:
            param_type = click.FLOAT
        elif "ComplexData" in param.dataType:

# Path: birdy/cli/misc.py
# def get_ssl_verify():  # noqa: D103
#     value = os.environ.get("WPS_SSL_VERIFY", "True")
#     if value.lower() == "true":
#         verify = True
#     elif value.lower() == "false":
#         import urllib3
# 
#         urllib3.disable_warnings()
#         click.echo(
#             "Warning: Unverified HTTPS request is being made."
#             " Adding certificate verification is strongly advised.\n"
#         )
#         verify = False
#     else:
#         verify = value
#     return verify
# 
# Path: birdy/cli/types.py
# COMPLEX = ComplexParamType()
# 
# Path: birdy/exceptions.py
# class ConnectionError(click.ClickException):  # noqa: D101
#     pass


# Path: birdy/cli/base.py
import os
import click
from collections import OrderedDict
from jinja2 import Environment, PackageLoader
from owslib.wps import WebProcessingService
from requests.exceptions import SSLError
from birdy.cli.misc import get_ssl_verify
from birdy.cli.types import COMPLEX
from birdy.exceptions import ConnectionError


    @staticmethod
    def format_command_help(process):  # noqa: D102
        return "{}: {}".format(
            process.title or process.identifier, process.abstract or ""
        )

    @staticmethod
    def get_param_default(param):  # noqa: D102
        if "ComplexData" in param.dataType:
            # TODO: get default value of complex type
            default = None
        elif "BoundingBoxData" in param.dataType:
            # TODO: get default value of bbox
            default = None
        else:
            default = getattr(param, "defaultValue", None)
        return default

    @staticmethod
    def get_param_type(param):  # noqa: D102
        if param.dataType is None:
            param_type = click.STRING
        elif "boolean" in param.dataType:
            param_type = click.BOOL
        elif "integer" in param.dataType:
            param_type = click.INT
        elif "float" in param.dataType:
            param_type = click.FLOAT
        elif "ComplexData" in param.dataType:

            param_type = COMPLEX