module InspecPlugins::Compliance::API::Login

def login(options)

def login(options)
  raise ArgumentError, "Please specify a server using `#{EXEC_NAME} automate login https://SERVER` or `#{EXEC_NAME} compliance login https://SERVER`" unless options["server"]
  options["server_type"] = "automate2"
  options["server"] = URI("https://#{options["server"]}").to_s if URI(options["server"]).scheme.nil?
  Login::Automate2Server.login(options)
end