class Gitlab::Shell

def completion

Gets called when user hits TAB key to do completion
def completion
  proc { |str| actions.map(&:to_s).grep(/^#{Regexp.escape(str)}/) }
end