Method: Gitlab::Shell.completion

Defined in:
lib/gitlab/shell.rb

.completionObject

Gets called when user hits TAB key to do completion

[View source]

62
63
64
# File 'lib/gitlab/shell.rb', line 62

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