code: def get_enabled(runas=None):
      '''
      Return a list of all services that are enabled. Can be used to find the
      name of a service.
  
      :param str runas: User to run launchctl commands
  
      :return: A list of all the services enabled on the system
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled
      '''
      # Collect list of enabled services
      stdout = list_(runas=runas)
      service_lines = [line for line in stdout.splitlines()]
  
      # Construct list of enabled services
      enabled = []
      for line in service_lines:
          # Skip header line
          if line.startswith('PID'):
              continue
  
          pid, status, label = line.split('\t')
          enabled.append(label)
  
      return sorted(set(enabled)f get_enabled(runas=None):
      '''
      Return a list of all services that are enabled. Can be used to find the
      name of a service.
  
      :param str runas: User to run launchctl commands
  
      :return: A list of all the services enabled on the system
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled
      '''
      # Collect list of enabled services
      stdout = list_(runas=runas)
      service_lines = [line for line in stdout.splitlines()]
  
      # Construct list of enabled services
      enabled = []
      for line in service_lines:
          # Skip header line
          if line.startswith('PID'):
              continue
  
          pid, status, label = line.split('\t')
          enabled.append(label)
  
      return sorted(set(enabled))
docs: Return a list of all services that are enabled. Can be used to find the
      name of a service.
  
      :param str runas: User to run launchctl commands
  
      :return: A list of all the services enabled on the system
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled