mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-07 17:01:29 +02:00
This got accidentally removed when the implementation of the footer and header functions in the format module were added.
41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
# coding: utf-8
|
|
#
|
|
# Copyright © 2012 Ejwa Software. All rights reserved.
|
|
#
|
|
# This file is part of gitinspector.
|
|
#
|
|
# gitinspector is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# gitinspector is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with gitinspector. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
"""Copyright © 2012 Ejwa Software. All rights reserved.
|
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
|
|
Written by Adam Waldenberg."""
|
|
|
|
from __future__ import print_function
|
|
|
|
__version__ = "0.1.0"
|
|
|
|
def output_html(string, _):
|
|
print("HTML output not yet supported.")
|
|
|
|
def output_text(_):
|
|
print("gitinspector {0}\n".format(__version__) + __doc__)
|
|
|
|
def output_xml():
|
|
license_text = "\t\t" + __doc__.replace("\n", "\n\t\t")
|
|
print("\t<version>" + __version__ + "</version>\n" +
|
|
"\t<license-text>\n" + license_text + "\n\t</license-text>")
|