private void addCmdPart(List<String> cmdList, StringBuilder command, String cmdpart) {
    if (cmdpart.endsWith("\\")) {
      command.append(cmdpart.substring(0, cmdpart.length() - 1)).append(beeLine.getOpts().getDelimiter());
      return;
    } else {
      command.append(cmdpart);
    }
    cmdList.add(command.toString());
    command.setLength(0);
  }
Given a cmdpart (e.g. if a command spans multiple lines), add to the current command, and if
applicable add that command to the {@link List} of commands
beeline/src/java/org/apache/hive/beeline/Commands.java