text: from .abstract_command import AbstractCommand
  
  
  class DisableConnector(AbstractCommand):
      def get_name(self):
          return "connector:disable"
  
      def get_description(self):
          return "Disable a connector"
  
      def get_options(self):
          return [{"name": "name",
                   "description": "name of the connector you want to disable"}]
  
      def run(self, args):
          from deployer.src.helpers import make_request
          from deployer.src.fetchers import get_configs_from_website
          from deployer.src.helpers import send_slack_notif
          from deployer.src.algolia_helper import remove_crawling_issue
  
          configs, inverted, crawler_ids = get_configs_from_website()
          connector_name = args[0]
  
          make_request('/{}/deactivate'.format(inverted[connector_name]),
                       "PUT")
  
          remove_crawling_issue(connector_name)
  
          send_slack_notif([{
              "title": "Disable connectors",
              "text": "- " + connector_name
          }])
  