def confirm_destroy()

in source/eksfedctl/destroy_action.py [0:0]


def confirm_destroy():
    question = "Do you want to destroy federated EKS clusters? [y/N]: "
    answer = ""

    while answer not in ["y", "n"]:
        answer = str(input(question)).lower().strip()
        if answer == "":
            return False

    return answer == "y"