require "magellan/cli/version"
require "magellan/cli/i18n"

module Magellan
  module Cli
    autoload :Command  , "magellan/cli/command"

    autoload :Base     , "magellan/cli/base"
    autoload :Http     , "magellan/cli/http"
    autoload :Direct   , "magellan/cli/direct"
    autoload :Resources, "magellan/cli/resources"

    autoload :Login    , "magellan/cli/login"
    autoload :Ssl      , "magellan/cli/ssl"

    autoload :Messaging, "magellan/cli/messaging"

    autoload :Error     , "magellan/cli/errors"
    autoload :LoginError, "magellan/cli/errors"

    autoload :FileAccess, "magellan/cli/file_access"
    JSON_HEADER = {
      "Content-Type" => "application/json"
    }.freeze

    autoload :ReferenceGenerator, "magellan/cli/reference_generator"
    autoload :GemUpdate, "magellan/cli/gem_update"

    class << self
      attr_accessor :last_result
    end

  end
end