def get_workflows_in_pipeline(scripts_dict, pipeline):
    """
    IF pipeline == "all":
        return a dictionary with keys=pipeline names, values=list of workflows in that pipeline 
    ELSE:
        return a list of workflows in a given pipeline

    input: 
        scripts_dict: scripts dictionary described in get_scripts_dict function
        pipeline: name of a supported target pipeline or "all". 
    """
    if pipeline == "all":
        print()
        return {curr_pipeline:[workflow for workflow in scripts_dict[curr_pipeline] if not workflow == "All Workflows"] 
                for curr_pipeline in scripts_dict if not curr_pipeline == "All Pipelines"}
    return [workflow for workflow in scripts_dict[pipeline] if not workflow == "All Workflows"]