public Integer call()

in log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java [66:82]


        public Integer call() {
            Map<String, SupportedFormat> supportedFormatMap = new TreeMap<>();
            converter
                    .getSupportedInputFormats()
                    .forEach(formatName -> supportedFormatMap.compute(formatName, SupportedFormat::enableInput));
            converter
                    .getSupportedOutputFormats()
                    .forEach(formatName -> supportedFormatMap.compute(formatName, SupportedFormat::enableOutput));
            converter
                    .getFormatDescriptions()
                    .forEach((formatName, description) -> supportedFormatMap.compute(
                            formatName, (f, old) -> SupportedFormat.updateDescription(f, description, old)));
            System.out.println("Supported formats:");
            System.out.println();
            formatRows(supportedFormatMap.values()).forEach(System.out::println);
            return 0;
        }