# File lib/termtter/command.rb, line 39 def complement(input) if match?(input) && input =~ /^[^\s]+\s/ if completion_proc command_str, command_arg = Command.split_command_line(input) [completion_proc.call(command_str, command_arg || '')].flatten.compact else [] end else [name.to_s, aliases.to_s].grep(/^#{Regexp.quote(input)}/) end end