1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

add website to info and use variables for version info

This commit is contained in:
Kelly Brazil
2021-03-30 08:05:26 -07:00
parent ba0dd3b9ca
commit cd86890ed1

View File

@ -31,6 +31,7 @@ class info():
description = 'JSON CLI output utility'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'
website = 'https://github.com/kellyjonbrazil/jc'
copyright = '© 2019-2021 Kelly Brazil'
@ -287,6 +288,7 @@ def about_jc():
'description': info.description,
'author': info.author,
'author_email': info.author_email,
'website': info.website,
'copyright': info.copyright,
'parser_count': len(parser_list),
'parsers': parser_list
@ -332,7 +334,8 @@ def versiontext():
"""Return the version text"""
versiontext_string = f'''\
jc version {info.version}
© 2019-2021 Kelly Brazil'''
{info.website}
{info.copyright}'''
return textwrap.dedent(versiontext_string)