From 53da1568975860d2a25b62c4892a6e5d279a7e38 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 10 Jan 2025 20:11:47 +0530 Subject: [PATCH] feat: generate type aliases in loop --- utils/adapter_type_gen.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils/adapter_type_gen.sh b/utils/adapter_type_gen.sh index 06c946b..a09d022 100755 --- a/utils/adapter_type_gen.sh +++ b/utils/adapter_type_gen.sh @@ -46,6 +46,13 @@ pub fn init_cqrs( } +run_loop() { + for i in "${@:2}" + do + run $1 $i + done +} + if [ -z $1 ] then @@ -54,6 +61,6 @@ elif [ -z $2 ] then help else - run $1 $2 $3 $4 | wl-copy - run $1 $2 $3 $4 + run_loop "$@" + run_loop "$@" | wl-copy fi