def basic_input()

in radlab-launcher/radlab.py [0:0]


def basic_input(orgid, billing_acc, folderid, randomid):
    print("\nEnter following info to start the setup and use the user which have Project Owner & Billing Account User roles:-")

    # Selecting Org ID
    if (orgid == ''):
        orgid = getorgid()

    # Org ID Validation
    if (orgid.strip() and orgid.strip().isdecimal() == False):
        sys.exit(Fore.RED + "\nError Occured - INVALID ORG ID\n")

    print("\nOrg ID (Selected) : " + Fore.GREEN + Style.BRIGHT + orgid + Style.RESET_ALL)

    # Selecting Folder ID
    if (folderid == ''):
        x = input("\nSet Folder ID ?\n[1] Enter Manually\n[2] Skip setting Folder ID\n" + Fore.YELLOW + Style.BRIGHT + "Choose a number for your choice" + Style.RESET_ALL + ': ').strip()
        if (x == '1'):
            folderid = input(Fore.YELLOW + Style.BRIGHT + "\nFolder ID" + Style.RESET_ALL + ': ').strip()
        elif (x == '2'):
            print("Skipped setting Folder ID...")
        else:
            sys.exit(Fore.RED + "\nError Occured - INVALID CHOICE\n" + Style.RESET_ALL)

    # Folder ID Validation
    if (folderid.strip() and folderid.strip().isdecimal() == False):
        sys.exit(Fore.RED + "\nError Occured - INVALID FOLDER ID ACCOUNT\n")

    print("\nFolder ID (Selected) : " + Fore.GREEN + Style.BRIGHT + folderid + Style.RESET_ALL)

    # Selecting Billing Account
    if (billing_acc == ''):
        billing_acc = getbillingacc()
    print("\nBilling Account (Selected) : " + Fore.GREEN + Style.BRIGHT + billing_acc + Style.RESET_ALL)

    # Billing Account Validation
    if (billing_acc.count('-') != 2):
        sys.exit(Fore.RED + "\nError Occured - INVALID Billing Account\n")

    # Create Random Deployment ID
    if (randomid == ''):
        randomid = get_random_alphanumeric_string(4)

    return orgid, billing_acc, folderid, randomid