Method: Dry::CLI::Usage.commands

Defined in:
lib/dry/cli/usage.rb

.commands(result) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



85
86
87
# File 'lib/dry/cli/usage.rb', line 85

def self.commands(result)
  result.children.sort_by { |name, _| name }
end