Class: Dry::CLI::Help::Screens::Listing

Inherits:
Base
  • Object
show all
Defined in:
lib/dry/cli/help/screens/listing.rb

Overview

The help printed for a registry level: mycli, mycli -h, and a group such as mycli db whose node has no command of its own.

Constant Summary collapse

SECTIONS =
%i[banner usage commands options epilogue].freeze

Constants inherited from Base

Base::HELP, Base::INDENT, Base::Row

Instance Method Summary collapse

Methods inherited from Base

#render

Constructor Details

#initialize(result:) ⇒ Listing

Returns a new instance of Listing.

Parameters:

  • result (Dry::CLI::CommandRegistry::LookupResult) —

    the level to list



13
14
15
16
# File 'lib/dry/cli/help/screens/listing.rb', line 13

def initialize(result:, **)
  super(**)
  @result = result
end