Class CommandsSection


  • public class CommandsSection
    extends HelpSection
    Command section of Elytron help command
    Author:
    Petr Beran
    • Constructor Detail

      • CommandsSection

        public CommandsSection​(Map<String,​String> commands)
    • Method Detail

      • printHelp

        public void printHelp()
        Description copied from class: HelpSection
        Displays help of specific section
        Specified by:
        printHelp in class HelpSection
      • formatAndPrintCommand

        protected void formatAndPrintCommand​(String commandName,
                                             CharSequence commandDescription,
                                             int longestCommand)
        Formats and prints command and it's respective description
        Parameters:
        commandName - Command's name
        commandDescription - Command's description
        longestCommand - Length of the longest commands. Ensures that all descriptions start at the same column