Bug #2939
closedCLI shell sutocompletion does not work
Description
Hitting a tab to complete string "co" in shell mode ends up with a stacktrace.
$ hammer shell
hammer> co/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/autocompletion.rb:12:in `autocomplete': undefined method `keys' for #<Array:0x7f8e83f99868> (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:34:in `complete_proc'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `call'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `readline'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/shell.rb:16:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:16:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/lib/hammer_cli/abstract.rb:16:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.2/bin/hammer:53
from /usr/bin/hammer:19:in `load'
from /usr/bin/hammer:19
Updated by Martin Bacovsky over 11 years ago
- Status changed from New to Assigned
- Assignee set to Martin Bacovsky
Updated by Martin Bacovsky over 11 years ago
- Status changed from Assigned to Resolved
Updated by Dominic Cleal about 11 years ago
- Project changed from Foreman to Hammer CLI
- Category deleted (
44)