function CommandInstance() {
    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        command = _ref.command,
        commandObject = _ref.commandObject,
        args = _ref.args,
        commandWrapper = _ref.commandWrapper,
        callback = _ref.callback,
        downstream = _ref.downstream;

    _classCallCheck(this, CommandInstance);

    this.command = command;
    this.commandObject = commandObject;
    this.args = args;
    this.commandWrapper = commandWrapper;
    this.session = commandWrapper.session;
    this.parent = this.session.parent;
    this.callback = callback;
    this.downstream = downstream;
  }
Initialize a new `CommandInstance` instance.

@param {Object} params
@return {CommandInstance}
@api public