code: def auto(name):
      '''
      Trigger alternatives to set the path for <name> as
      specified by priority.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' alternatives.auto name
      '''
      cmd = [_get_cmd(), '--auto', name]
      out = __salt__['cmd.run_all'](cmd, python_shell=False)
      if out['retcode'] > 0:
          return out['stderr']
      return out['stdout'f auto(name):
      '''
      Trigger alternatives to set the path for <name> as
      specified by priority.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' alternatives.auto name
      '''
      cmd = [_get_cmd(), '--auto', name]
      out = __salt__['cmd.run_all'](cmd, python_shell=False)
      if out['retcode'] > 0:
          return out['stderr']
      return out['stdout']
docs: Trigger alternatives to set the path for <name> as
      specified by priority.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' alternatives.auto name