public static CommandLineInteraction create()

in tools/automatic_query_fixer/src/main/java/com/google/cloud/bigquery/utils/queryfixer/cmd/CommandLineInteraction.java [38:64]


  public static CommandLineInteraction create(
      String mode, String outputFormat, @NonNull BigQueryOptions bigQueryOptions) {
    if (outputFormat == null) {
      outputFormat = NATURAL_OUTPUT;
    }
    outputFormat = outputFormat.toLowerCase();

    if (mode == null) {
      mode = AUTO_MODE;
    }
    mode = mode.toLowerCase();

    switch (mode) {
      case AUTO_MODE:
        return new AutoModeInteraction(outputFormat, bigQueryOptions);
      case USER_ASSISTED_MODE:
      case UA_MODE:
        return new UserAssistedModeInteraction(outputFormat, bigQueryOptions);
      case SUGGESTION_MODE:
      case SG_MODE:
        return new SuggestionModeInteraction(outputFormat, bigQueryOptions);
      default:
        System.out.println("Mode (-m) is incorrect. Use --help for usage.");
        System.exit(1);
        return null;
    }
  }