module Gitlab::Help

def namespace(cmd)

Returns full namespace of a command (e.g. Gitlab::Client::Branches.cmd)
def namespace(cmd)
  method_owners.select { |method| method[:name] == cmd }
               .map { |method| method[:owner] + '.' + method[:name] }
               .shift
end