in build.py [0:0]
def main():
kibana_version = parse_arguments()
logging.info(".............................................................")
logging.info(f"Starting the script with Kibana version: {kibana_version}")
base_dir, integrations_dir = create_builds_directory(kibana_version)
total_files = fetch_and_count_files(kibana_version) # Ensure this function is defined
logging.info(f"Total files to download: {total_files}")
logging.info(".............................................................")
fetch_and_download_files(kibana_version, integrations_dir, total_files)
create_dockerfile(base_dir)
copy_and_modify_readme(base_dir, kibana_version)
# Display a fancy ending message with the location of the readme.md
readme_location = base_dir / 'readme.md'
print("\n" + "*" * 40)
print("\033[1mEPR Build Completed\033[0m")
print(f"Refer to the documentation in: \033[1m{readme_location}\033[0m")
print("*" * 40 + "\n")
logging.info("Script completed successfully!")