blob: af4e434be825585fec1b8be2b26988630e5bd9b0 [file] [log] [blame]
Pau Espin Pedrol5badb212024-05-15 14:36:53 +02001module PIPEasp_Templates {
2
3import from PIPEasp_PortType all;
4import from PIPEasp_Types all;
5
6template (value) ASP_PExecuteBackground ts_ExecBg(charstring cmd) := {
7 command := cmd
8}
9
10template (present) ASP_PStdout tr_Stdout(template (present) charstring line) := {
11 stdout := line
12}
13
14template (present) ASP_PStderr tr_Stderr(template (present) charstring line) := {
15 stderr := line
16}
17
18template (value) ASP_PStdin ts_Stdin(template (value) charstring line) := {
19 stdin :=line
20}
21
22/* Ignore output from stderr: */
23altstep as_ignore_stderr(PIPEasp_PT pt) {
24[] pt.receive(tr_Stderr(?)) { repeat; }
25}
26
27}