1comment: "This flow will create the bootstrapCustom.json file"
2flow:
3    -   name: "SelectCss"
4        comment: "Selection of the custom CSS files"
5        op: "select"
6        args:
7            data-selector: "**/bootstrap.*.min.css@sd"
8    -   name: "List"
9        op: "list"
10        args:
11            attributes:
12                - parent
13                - logicalName
14                - name
15                - sha384_integrity
16    -   name: "Print"
17        op: "print"
18    -   name: "Json"
19        op: "template"
20        args:
21            template-inline:
22                type: json
23                content: |
24                    {
25                        "${parent}": {
26                            "${logicalName}": {
27                                "file" : "${name}",
28                                "url" : "https://cdn.jsdelivr.net/npm/bootswatch@${parent}/dist/!!!!toImproveNameOfTheTheme!!!!/bootstrap.min.css",
29                                "integrity" : "${sha384_integrity}"
30                            }
31                        }
32                    }
33    -   name: "Transfer"
34        op: "transfer"
35        args:
36            transfer-operation: "copy"
37            target-uri: "bootstrapCustom.json@sd"
38            target-operation: "replace"
39