def commands_help
      longest_cmd = @commands.inject do |longest, cmd_name|
        longest.length > cmd_name.length ? longest : cmd_name
      end

      ui.output "\nCommands:"

      Hash[@command_names_and_summaries.sort].each_pair do |name, summary|
        ui.output_printf "%-#{longest_cmd.length}s      %s\n", name, summary
      end
    end
def commands_help
      longest_cmd = @commands.inject do |longest, cmd_name|
        longest.length > cmd_name.length ? longest : cmd_name
      end

      ui.output "\nCommands:"

      Hash[@command_names_and_summaries.sort].each_pair do |name, summary|
        ui.output_printf "%-#{longest_cmd.length}s      %s\n", name, summary
      end
    end
Internal: Provides the help of all of the known commands.

 Examples

   @cli.commands_help

 Outputs the summary text for all known commands.