From 6be57ab9202df593cc020a3ed134dd64684412bd Mon Sep 17 00:00:00 2001 From: XxChang Date: Thu, 29 Aug 2024 09:23:53 +0800 Subject: [PATCH 1/2] changes to template --- .../cli/src/template/c/dataflow-template.yml | 31 +++++++-------- .../src/template/cxx/dataflow-template.yml | 31 +++++++-------- .../src/template/python/dataflow-template.yml | 31 +++++++-------- .../src/template/rust/dataflow-template.yml | 39 +++++++++---------- 4 files changed, 60 insertions(+), 72 deletions(-) diff --git a/binaries/cli/src/template/c/dataflow-template.yml b/binaries/cli/src/template/c/dataflow-template.yml index 72b121ea1..49ed0b925 100644 --- a/binaries/cli/src/template/c/dataflow-template.yml +++ b/binaries/cli/src/template/c/dataflow-template.yml @@ -1,22 +1,19 @@ nodes: - id: talker_1 - custom: - source: bin/talker_1 - inputs: - tick: dora/timer/millis/100 - outputs: - - speech + path: bin/talker_1 + inputs: + tick: dora/timer/millis/100 + outputs: + - speech - id: talker_2 - custom: - source: bin/talker_2 - inputs: - tick: dora/timer/secs/2 - outputs: - - speech + path: bin/talker_2 + inputs: + tick: dora/timer/secs/2 + outputs: + - speech - id: listener_1 - custom: - source: bin/listener_1 - inputs: - speech-1: talker_1/speech - speech-2: talker_2/speech + path: bin/listener_1 + inputs: + speech-1: talker_1/speech + speech-2: talker_2/speech diff --git a/binaries/cli/src/template/cxx/dataflow-template.yml b/binaries/cli/src/template/cxx/dataflow-template.yml index 72b121ea1..36198d16d 100644 --- a/binaries/cli/src/template/cxx/dataflow-template.yml +++ b/binaries/cli/src/template/cxx/dataflow-template.yml @@ -1,22 +1,19 @@ nodes: - id: talker_1 - custom: - source: bin/talker_1 - inputs: - tick: dora/timer/millis/100 - outputs: - - speech + source: bin/talker_1 + path: + tick: dora/timer/millis/100 + outputs: + - speech - id: talker_2 - custom: - source: bin/talker_2 - inputs: - tick: dora/timer/secs/2 - outputs: - - speech + source: bin/talker_2 + path: + tick: dora/timer/secs/2 + outputs: + - speech - id: listener_1 - custom: - source: bin/listener_1 - inputs: - speech-1: talker_1/speech - speech-2: talker_2/speech + source: bin/listener_1 + path: + speech-1: talker_1/speech + speech-2: talker_2/speech diff --git a/binaries/cli/src/template/python/dataflow-template.yml b/binaries/cli/src/template/python/dataflow-template.yml index b44cacb7c..2fa636517 100644 --- a/binaries/cli/src/template/python/dataflow-template.yml +++ b/binaries/cli/src/template/python/dataflow-template.yml @@ -1,22 +1,19 @@ nodes: - id: talker_1 - custom: - source: talker_1/talker_1.py - inputs: - tick: dora/timer/millis/100 - outputs: - - speech + path: talker_1/talker_1.py + inputs: + tick: dora/timer/millis/100 + outputs: + - speech - id: talker_2 - custom: - source: talker_2/talker_2.py - inputs: - tick: dora/timer/secs/2 - outputs: - - speech + path: talker_2/talker_2.py + inputs: + tick: dora/timer/secs/2 + outputs: + - speech - id: listener_1 - custom: - source: listener_1/listener_1.py - inputs: - speech-1: talker_1/speech - speech-2: talker_2/speech + path: listener_1/listener_1.py + inputs: + speech-1: talker_1/speech + speech-2: talker_2/speech diff --git a/binaries/cli/src/template/rust/dataflow-template.yml b/binaries/cli/src/template/rust/dataflow-template.yml index 7093abc5d..0b78ca06b 100644 --- a/binaries/cli/src/template/rust/dataflow-template.yml +++ b/binaries/cli/src/template/rust/dataflow-template.yml @@ -1,26 +1,23 @@ nodes: - id: talker_1 - custom: - build: cargo build -p talker_1 - source: target/debug/talker_1 - inputs: - tick: dora/timer/millis/100 - outputs: - - speech + build: cargo build -p talker_1 + path: target/debug/talker_1 + inputs: + tick: dora/timer/millis/100 + outputs: + - speech - id: talker_2 - custom: - build: cargo build -p talker_2 - source: target/debug/talker_2 - inputs: - tick: dora/timer/secs/2 - outputs: - - speech + build: cargo build -p talker_2 + path: target/debug/talker_2 + inputs: + tick: dora/timer/secs/2 + outputs: + - speech - id: listener_1 - custom: - build: cargo build -p listener_1 - source: target/debug/listener_1 - inputs: - tick: dora/timer/secs/1 - speech-1: talker_1/speech - speech-2: talker_2/speech + build: cargo build -p listener_1 + path: target/debug/listener_1 + inputs: + tick: dora/timer/secs/1 + speech-1: talker_1/speech + speech-2: talker_2/speech From 3db6744e3644eea204d13777a6b427743fa27c19 Mon Sep 17 00:00:00 2001 From: XxChang Date: Thu, 29 Aug 2024 09:38:23 +0800 Subject: [PATCH 2/2] fix typo --- binaries/cli/src/template/cxx/dataflow-template.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/binaries/cli/src/template/cxx/dataflow-template.yml b/binaries/cli/src/template/cxx/dataflow-template.yml index 36198d16d..49ed0b925 100644 --- a/binaries/cli/src/template/cxx/dataflow-template.yml +++ b/binaries/cli/src/template/cxx/dataflow-template.yml @@ -1,19 +1,19 @@ nodes: - id: talker_1 - source: bin/talker_1 - path: + path: bin/talker_1 + inputs: tick: dora/timer/millis/100 outputs: - speech - id: talker_2 - source: bin/talker_2 - path: + path: bin/talker_2 + inputs: tick: dora/timer/secs/2 outputs: - speech - id: listener_1 - source: bin/listener_1 - path: + path: bin/listener_1 + inputs: speech-1: talker_1/speech speech-2: talker_2/speech