#!/usr/bin/env nu
# Info: Prepare for oci_reg installation
# Author: JesusPerezLorenzo
# Release: 1.0.2
# Date: 24-12-2023

use lib_provisioning/cmd/env.nu *
use lib_provisioning/cmd/lib.nu *

use lib_provisioning/utils/ui.nu *

print $"(_ansi green_bold)oci_reg(_ansi reset) with ($env.PROVISIONING_VARS)"

let defs = load_defs
if not ($env.PROVISIONING_WK_ENV_PATH | path exists) {
    print $"(_ansi red_bold)PROVISIONING_WK_ENV_PATH(_ansi reset) ($env.PROVISIONING_WK_ENV_PATH) not found"
    exit 1
}
#$defs.taskserv.config | save -f ($env.PROVISIONING_WK_ENV_PATH | path join "config.json")
print  "config.json generated !"
