mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-07 02:07:47 +02:00
Complete rewrite and re-architecture Osmedeus Engine in v5
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
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}}"
|
||||
Reference in New Issue
Block a user