code: def version():
      '''
      Return server version from catalina.sh version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' tomcat.version
      '''
      cmd = __catalina_home() + '/bin/catalina.sh version'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          if not line:
              continue
          if 'Server version' in line:
              comps = line.split(': ')
              return comps[1f version():
      '''
      Return server version from catalina.sh version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' tomcat.version
      '''
      cmd = __catalina_home() + '/bin/catalina.sh version'
      out = __salt__['cmd.run'](cmd).splitlines()
      for line in out:
          if not line:
              continue
          if 'Server version' in line:
              comps = line.split(': ')
              return comps[1]
docs: Return server version from catalina.sh version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' tomcat.version