lib/commando/action/help.rb in tcollier-commando-0.1.0 vs lib/commando/action/help.rb in tcollier-commando-0.1.1

- old
+ new

@@ -4,10 +4,11 @@ module Action # Action that prints out all available commands module Help def self.perform(args:, output: $stdout) output.puts "Valid commands are" - Commando.config.each_action do |command, description| + descriptions = Commando.config.descriptions + descriptions.sort_by { |cmd, _| cmd }.each do |command, description| output.puts " * #{command} - #{description}" end end end end