kedro/framework/cli/cli.py
def _get_user_input(
    text: str, default: Any = None, check_input: Callable = None
) -> Any:
    """Get user input and validate it.

    Args:
        text: Text to display in command line prompt.
        default: Default value for the input.
        check_input: Function to apply to check user input.

    Returns:
        Processed user value.

    """

    while True:
        value = click.prompt(text, default=default)
        if check_input:
            try:
                check_input(value)
            except KedroCliError as exc:
                click.secho(str(exc), fg="red", err=True)
                continue
        return value
Get user input and validate it.

    Args:
        text: Text to display in command line prompt.
        default: Default value for the input.
        check_input: Function to apply to check user input.

    Returns:
        Processed user value.

    
Get user input and validate it.
Get user input and validate it .
def _get_user_input(
    text: str, default: Any = None, check_input: Callable = None
) -> Any:
    while True:
        value = click.prompt(text, default=default)
        if check_input:
            try:
                check_input(value)
            except KedroCliError as exc:
                click.secho(str(exc), fg="red", err=True)
                continue
        return value
def _get_user_input ( text : str , default : Any = None , check_input : Callable = None ) -> Any : while True : value = click . prompt ( text , default = default ) if check_input : try : check_input ( value ) except KedroCliError as exc : click . secho ( str ( exc ) , fg = "red" , err = True ) continue return value
Get user input and validate it.
Get user input and validate it .
"""Get user input and validate it.

    Args:
        text: Text to display in command line prompt.
        default: Default value for the input.
        check_input: Function to apply to check user input.

    Returns:
        Processed user value.

    """
Processed user value.
Processed user value .
text
str
Text to display in command line prompt.
Text to display in command line prompt .
default
Any
Default value for the input.
Default value for the input .
check_input
Callable
Function to apply to check user input.
Function to apply to check user input .