mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-24 19:58:31 +01:00
abdc4bbf83
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
21 lines
512 B
Python
21 lines
512 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from slpkg.configs import Configs
|
|
|
|
|
|
@dataclass
|
|
class Version:
|
|
prog_name: str = Configs.prog_name
|
|
version_info: tuple = (4, 2, 7)
|
|
version: str = '{0}.{1}.{2}'.format(*version_info)
|
|
license: str = 'MIT License'
|
|
author: str = 'dslackw'
|
|
homepage: str = 'https://dslackw.gitlab.io/slpkg'
|
|
|
|
def view(self):
|
|
print(f'{self.prog_name} version: {self.version}\n'
|
|
f'Homepage: {self.homepage}')
|