def controller
      config = Moonshot.config
      config.update_for_account!
      controller = Moonshot::Controller.new(config)

      # Degrade to a more compatible logger if the terminal seems outdated,
      # or at the users request.
      if !$stdout.isatty || !@use_interactive_logger
        log = Logger.new(STDOUT)
        controller.config.interactive_logger = InteractiveLoggerProxy.new(log)
      end

      controller
    end
def controller
      config = Moonshot.config
      config.update_for_account!
      controller = Moonshot::Controller.new(config)

      # Degrade to a more compatible logger if the terminal seems outdated,
      # or at the users request.
      if !$stdout.isatty || !@use_interactive_logger
        log = Logger.new(STDOUT)
        controller.config.interactive_logger = InteractiveLoggerProxy.new(log)
      end

      controller
    end
Build a Moonshot::Controller from the CLI options.