public function add(Command $cmd, $mode = RUN_REGARDLESS, $pipe = false)
    {
        $cmd->_runMode = $mode;
        $cmd->_pipe = !!$pipe;
        $this->commands[] = $cmd;

        return $this;
    }