private String constructCmd(String url, String user, String pass, String driver, boolean stripPasswd) {
    return new StringBuilder()
       .append("!connect ")
       .append(url)
       .append(" ")
       .append(user == null || user.length() == 0 ? "''" : user)
       .append(" ")
       .append(stripPasswd ? PASSWD_MASK : (pass.length() == 0 ? "''" : pass))
       .append(" ")
       .append((driver == null ? "" : driver))
       .toString();
  }
Entry point to creating a {@link ColorBuffer} with color
enabled or disabled depending on the value of {@link BeeLineOpts#getColor}.
beeline/src/java/org/apache/hive/beeline/BeeLine.java