Liking cljdoc? Tell your friends :D

lambdacd.stepresults.flatten

Functions to convert a nested step result and transform it into a flat list

Functions to convert a nested step result and transform it into a flat list
raw docstring

flatten-step-result-outputsclj

(flatten-step-result-outputs outputs)

Takes a nested step-result map (like those returned by a step or sent in a:pipeline-finished event) and converts it into a flat map of step results where every step is accessible with its step-id:

> (flatten-step-result-outputs {[1] {:status :success}
                                [2] {:status  :success
                                     :outputs {[1 2] {:status :success :step [1 2]}}}})
{[1]   {:status :success}
 [2]   {:status  :success
        :outputs {[1 2] {:status :success :step [1 2]}}}
 [1 2] {:status :success :step [1 2]}}
Takes a nested step-result map (like those returned by a step or sent in a:pipeline-finished event)
and converts it into a flat map of step results where every step is accessible with its step-id:
```clojure
> (flatten-step-result-outputs {[1] {:status :success}
                                [2] {:status  :success
                                     :outputs {[1 2] {:status :success :step [1 2]}}}})
{[1]   {:status :success}
 [2]   {:status  :success
        :outputs {[1 2] {:status :success :step [1 2]}}}
 [1 2] {:status :success :step [1 2]}}
```
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close