()
| 153 | } |
| 154 | |
| 155 | func (p *PipeNode) String() string { |
| 156 | s := "" |
| 157 | for i, c := range p.Cmds { |
| 158 | if i > 0 { |
| 159 | s += " | " |
| 160 | } |
| 161 | s += c.String() |
| 162 | } |
| 163 | return s |
| 164 | } |
| 165 | |
| 166 | // ActionNode holds an action (something bounded by delimiters). |
| 167 | // Control actions have their own nodes; ActionNode represents simple |