from pathlib import Path
import yaml


def get_manifests(mfdir):
    """
    Read in all manifests and return as a dict
    """
    manifests = {}
    for mf in ['exe', 'input', 'restart']:
        mfpath = Path(mfdir)/"{}.yaml".format(mf)
        with mfpath.open() as fh:
            manifests[mfpath.name] = list(yaml.safe_load_all(fh))[1]
    return manifests