mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated version print command
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
5924211650
commit
22772a8e5a
2 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
4.3.4 - 02/12/2022
|
4.3.4 - 02/12/2022
|
||||||
Updated:
|
Updated:
|
||||||
- Remove dataclasses and switch to __init__
|
- Remove dataclasses and switch to __init__
|
||||||
|
- Version print command
|
||||||
Added:
|
Added:
|
||||||
- Version to the requires in the view packages command
|
- Version to the requires in the view packages command
|
||||||
|
|
||||||
|
|
|
@ -2,20 +2,18 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
from slpkg.configs import Configs
|
|
||||||
|
|
||||||
|
|
||||||
class Version:
|
class Version:
|
||||||
''' Print the vesrsion. '''
|
''' Print the vesrsion. '''
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.prog_name: str = Configs.prog_name
|
|
||||||
self.version_info: tuple = (4, 3, 4)
|
self.version_info: tuple = (4, 3, 4)
|
||||||
self.version: str = '{0}.{1}.{2}'.format(*self.version_info)
|
self.version: str = '{0}.{1}.{2}'.format(*self.version_info)
|
||||||
self.license: str = 'MIT License'
|
self.license: str = 'MIT License'
|
||||||
self.author: str = 'dslackw'
|
self.author: str = 'Dimitris Zlatanidis (dslackw)'
|
||||||
self.homepage: str = 'https://dslackw.gitlab.io/slpkg'
|
self.homepage: str = 'https://dslackw.gitlab.io/slpkg'
|
||||||
|
|
||||||
def view(self):
|
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}')
|
f'Homepage: {self.homepage}')
|
||||||
|
|
Loading…
Add table
Reference in a new issue