#--
# Copyright (c) 2008, 2009 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--

"""The ``info`` administrative command

Display informations about the framework environment
"""

import sys

from nagare.admin import util

class Info(util.Command):
    """Display informations about the framework environment"""
    
    desc = 'Display various informations'

    @staticmethod
    def run(parser, options, args):
        """Display the informations
        
        In:
          - ``parser`` -- the optparse.OptParser object used to parse the configuration file
          - ``options`` -- options in the command lines
          - ``args`` -- arguments in the command lines
        """        
        # For the moment, just diplay the Python version
        print sys.version


#--
# Copyright (c) 2008, 2009 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--

"""The ``info`` administrative command

Display informations about the framework environment
"""

import sys, pkg_resources

from nagare.admin import util

class Info(util.Command):
    """Display informations about the framework environment"""
    
    desc = 'Display various informations'

    @staticmethod
    def run(parser, options, args):
        """Display the informations
        
        In:
          - ``parser`` -- the optparse.OptParser object used to parse the configuration file
          - ``options`` -- options in the command lines
          - ``args`` -- arguments in the command lines
        """        
        # For the moment, just diplay the Python version
        print sys.version
        print
        print 'Nagare version', pkg_resources.get_distribution('nagare').version


Print the Nagare version number
Print the Nagare version number

--HG--
extra : convert_revision : svn%3Afc25bd86-f976-46a1-be41-59ef0291ea8c/trunk%4076
