Project

General

Profile

Bug #2939

CLI shell sutocompletion does not work

Added by Tomáš Strachota almost 7 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

Associated revisions

Revision 41aecefc (diff)
Added by Martin Bacovsky almost 7 years ago

fixes #2939 - autocompletion doesn't work

Revision d8e2a252
Added by mbacovsky almost 7 years ago

Merge pull request #24 from mbacovsky/2939_autocompletion

fixes #2939 - autocompletion doesn't work

History

#1 Updated by Martin Bacovsky almost 7 years ago

  • Target version set to 1.3.0

#2 Updated by Martin Bacovsky almost 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky

#3 Updated by Martin Bacovsky almost 7 years ago

  • Status changed from Assigned to Resolved

#4 Updated by Dominic Cleal over 6 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)

Also available in: Atom PDF