ygerzhedovich commented on code in PR #4280: URL: https://github.com/apache/ignite-3/pull/4280#discussion_r1732313181
########## modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/ExitCommand.java: ########## @@ -17,13 +17,38 @@ package org.apache.ignite.internal.cli.commands; +import static org.apache.ignite.internal.cli.commands.CommandConstants.ABBREVIATE_SYNOPSIS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.COMMAND_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.DESCRIPTION_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.OPTION_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.PARAMETER_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.REQUIRED_OPTION_MARKER; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SORT_OPTIONS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SORT_SYNOPSIS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SYNOPSIS_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.USAGE_HELP_AUTO_WIDTH; + import org.jline.reader.EndOfFileException; import picocli.CommandLine.Command; /** * Command to exit from app. */ -@Command(name = "exit", description = "Exit") +@Command( + name = "exit", + description = "Exit", + + descriptionHeading = DESCRIPTION_HEADING, + optionListHeading = OPTION_LIST_HEADING, Review Comment: you can significantly decrease nmber of changes by using picocli [default provider](https://picocli.info/#_default_provider) ########## modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/ExitCommand.java: ########## @@ -17,13 +17,38 @@ package org.apache.ignite.internal.cli.commands; +import static org.apache.ignite.internal.cli.commands.CommandConstants.ABBREVIATE_SYNOPSIS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.COMMAND_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.DESCRIPTION_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.OPTION_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.PARAMETER_LIST_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.REQUIRED_OPTION_MARKER; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SORT_OPTIONS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SORT_SYNOPSIS; +import static org.apache.ignite.internal.cli.commands.CommandConstants.SYNOPSIS_HEADING; +import static org.apache.ignite.internal.cli.commands.CommandConstants.USAGE_HELP_AUTO_WIDTH; + import org.jline.reader.EndOfFileException; import picocli.CommandLine.Command; /** * Command to exit from app. */ -@Command(name = "exit", description = "Exit") +@Command( + name = "exit", + description = "Exit", + + descriptionHeading = DESCRIPTION_HEADING, + optionListHeading = OPTION_LIST_HEADING, Review Comment: you can significantly decrease number of changes by using picocli [default provider](https://picocli.info/#_default_provider) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
