Method: Gitlab::Shell.completion

Defined in:
lib/gitlab/shell.rb

.completionObject

Gets called when user hits TAB key to do completion



60
61
62
# File 'lib/gitlab/shell.rb', line 60

def completion
  proc { |str| actions.map(&:to_s).grep(/^#{Regexp.escape(str)}/) }
end