# File lib/termtter/client.rb, line 199 def find_command(text) @commands. values. select {|command| command.match?(text) }. sort_by {|command| command.name.to_s.split(' ').size }. last end