private boolean useExternalViewer(Result result) {
    boolean flag =
        EXTERNAL_RESULT_VIEWER.equals(getEnvProperty(Gfsh.ENV_APP_RESULT_VIEWER)) && isUnix();
    if (result instanceof CommandResult) {
      CommandResult commandResult = (CommandResult) result;
      resultTypeTL.set(commandResult.getType().equals("info"));
      return flag && !commandResult.getType().equals("info");
    } else {
      return false;
    }
  }
Executes the given command string. We have over-ridden the behavior to extend the original
implementation to store the 'last command execution status'.

@param line command string to be executed
@return true if execution is successful; false otherwise
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/shell/Gfsh.java