def cli(ctx, history_id, name_filter=""):
    """Get dataset details for matching datasets within a history.

Output:

    List of dictionaries
    """
    return ctx.gi.histories.show_matching_datasets(history_id, name_filter=name_filter)