[Logs] Get only failed tests with the DevOps mode

Current situation

In DevOps mode the user (without TM) can access the log and search inside it with it's own tools.

Desired outcome

An option that show only the steps that failed.

Something like : opentf-ctl get workflow WORKFLOW_ID --failure that prints something better than :

        "testResults": [
          {
            "attachment_origin": "8088b76f-ef53-42d0-870e-d8b0505c8b62",
            "id": "8d9edc35-fccb-47ff-9e1f-87da8f114f36",
            "name": "F01-UC011.CT02 - should add one or several teams#Add teams F01-UC011.CT02 - should add one or several teams",
            "status": "FAILURE"
--
        "testResults": [
          {
            "attachment_origin": "be442db7-ee83-4cd7-9b77-8188a7d9838c",
            "id": "c882e064-5967-477f-bee3-6689d168b4d6",
            "name": "F01-UC0102.CT03 - should modify a login#Modify a login F01-UC0102.CT03 - should modify a login",
            "status": "FAILURE"

If possible having the reason on failure would be nice.

Analysis

Solution

Somehow possible with grep or jq or whatever json parser.

But an embedded solution can be great.

Cold be interesting in the qualitygate too. Directly inside the pipeline logs.