mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-22 15:42:27 +02:00
26 lines
522 B
YAML
26 lines
522 B
YAML
name: test-loop
|
|
kind: module
|
|
description: Test foreach loop with threading
|
|
tags: test,foreach,loop
|
|
|
|
params:
|
|
- name: target
|
|
required: true
|
|
|
|
steps:
|
|
- name: create-input
|
|
type: bash
|
|
commands:
|
|
- mkdir -p {{Output}}
|
|
- printf 'one\ntwo\nthree\nfour\nfive\n' > {{Output}}/items.txt
|
|
|
|
- name: process-items
|
|
type: foreach
|
|
input: "{{Output}}/items.txt"
|
|
variable: item
|
|
threads: 2
|
|
step:
|
|
name: process-item
|
|
type: bash
|
|
command: echo "Processing [[item]] for {{target}}"
|