public static List<String> getAllCommands() {
    List<String> cmds = new ArrayList<String>();
    for (CliCommandType t : CliCommandType.values()) {
      if (t != INVALID_COMMAND)
        cmds.add(t.getCommandName());
    }
    return cmds;
  }
static API to return all commands in this enumeration
@return list of all commands' names
samza-sql-shell/src/main/java/org/apache/samza/sql/client/impl/CliCommandType.java