from config import updateProjectStatusToSubprojectMin

def doDelivered(scaffold_home, cfg, prj_only="", sp_only=""):
    if prj_only == "":
        print(f"Error: `deliver` command requires specifying only one project (and optionally only one subproject)")
        return False

    # update status to DELIVERED if was FILEDTICKETS, otherwise don't
    prj = cfg._projects.get(prj_only, None)
    if not prj:
        print(f"{prj_only}: Project not found in config")
        return False

    ran_command = False
    for sp in prj._subprojects.values():