()
| 24 | } |
| 25 | |
| 26 | func (c *ShellScript) GetCommand() *Command { |
| 27 | code := c.operations[0].Code |
| 28 | return &Command{ |
| 29 | Path: "sh", |
| 30 | Args: []string{"-c", code}, |
| 31 | Env: c.env, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func (c *ShellScript) Pipe(code string) *ShellScript { |
| 36 | c.operations = append(c.operations, &Operation{ |
no outgoing calls