Method: Gitlab::Shell.completion
- Defined in:
- lib/gitlab/shell.rb
permalink .completion ⇒ Object
Gets called when user hits TAB key to do completion
62 63 64 |
# File 'lib/gitlab/shell.rb', line 62 def completion proc { |str| actions.map(&:to_s).grep(/^#{Regexp.escape(str)}/) } end |