def process()

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


def process(args):
    if not confirm_destroy():
        sys.exit()

    home_folder = os.path.expanduser("~")
    config_filename = args.file.replace("~", home_folder)
    root_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")

    exec_command(
        ["bash", "-c",
         f"source '{config_filename}' && bash '{root_path}/eks-cluster-setup/eks-cluster-destroy.sh'"]
    )