diff --git a/ChangeLog.txt b/ChangeLog.txt index a63db742..e0756907 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,7 @@ 4.3.4 - 02/12/2022 Updated: - Remove dataclasses and switch to __init__ +- Version print command Added: - Version to the requires in the view packages command diff --git a/slpkg/views/version.py b/slpkg/views/version.py index 70c7789c..3f6c5580 100644 --- a/slpkg/views/version.py +++ b/slpkg/views/version.py @@ -2,20 +2,18 @@ # -*- coding: utf-8 -*- -from slpkg.configs import Configs - - class Version: ''' Print the vesrsion. ''' def __init__(self): - self.prog_name: str = Configs.prog_name self.version_info: tuple = (4, 3, 4) self.version: str = '{0}.{1}.{2}'.format(*self.version_info) self.license: str = 'MIT License' - self.author: str = 'dslackw' + self.author: str = 'Dimitris Zlatanidis (dslackw)' self.homepage: str = 'https://dslackw.gitlab.io/slpkg' def view(self): - print(f'{self.prog_name} version: {self.version}\n' + print(f'Version: {self.version}\n' + f'Author: {self.author}\n' + f'License: {self.license}\n' f'Homepage: {self.homepage}')