mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed docstrings
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
7c4c685bee
commit
0fa2555b41
1 changed files with 12 additions and 20 deletions
|
@ -11,10 +11,7 @@ from slpkg.binaries.required import Required
|
||||||
|
|
||||||
|
|
||||||
class Tracking(Configs): # pylint: disable=[R0902]
|
class Tracking(Configs): # pylint: disable=[R0902]
|
||||||
|
"""Tracking of the package dependencies."""
|
||||||
"""
|
|
||||||
Tracking of the package dependencies.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, data: dict, packages: list, flags: list, repository: str):
|
def __init__(self, data: dict, packages: list, flags: list, repository: str):
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
|
@ -41,8 +38,7 @@ class Tracking(Configs): # pylint: disable=[R0902]
|
||||||
('-p', '--pkg-version'), flags)
|
('-p', '--pkg-version'), flags)
|
||||||
|
|
||||||
def package(self) -> None:
|
def package(self) -> None:
|
||||||
""" Call methods and prints the results.
|
"""Call methods and prints the results."""
|
||||||
"""
|
|
||||||
self.view_the_title()
|
self.view_the_title()
|
||||||
|
|
||||||
for package in self.packages:
|
for package in self.packages:
|
||||||
|
@ -62,28 +58,24 @@ class Tracking(Configs): # pylint: disable=[R0902]
|
||||||
self.view_summary_of_tracking(package)
|
self.view_summary_of_tracking(package)
|
||||||
|
|
||||||
def view_the_title(self) -> None:
|
def view_the_title(self) -> None:
|
||||||
""" Prints the title.
|
"""Prints the title."""
|
||||||
"""
|
|
||||||
print("The list below shows the packages with dependencies:\n")
|
print("The list below shows the packages with dependencies:\n")
|
||||||
self.packages: list = self.utils.apply_package_pattern(self.data, self.packages)
|
self.packages: list = self.utils.apply_package_pattern(self.data, self.packages)
|
||||||
|
|
||||||
def view_the_main_package(self) -> None:
|
def view_the_main_package(self) -> None:
|
||||||
""" Prints the main package.
|
"""Prints the main package."""
|
||||||
"""
|
|
||||||
print(self.package_line)
|
print(self.package_line)
|
||||||
print(f"{'':>1}{self.llc}{self.hl}", end='')
|
print(f"{'':>1}{self.llc}{self.hl}", end='')
|
||||||
|
|
||||||
def view_requires(self) -> None:
|
def view_requires(self) -> None:
|
||||||
""" Prints the requires.
|
"""Prints the requires."""
|
||||||
"""
|
|
||||||
if self.count_requires == 1:
|
if self.count_requires == 1:
|
||||||
print(f"{'':>1}{self.require_line}")
|
print(f"{'':>1}{self.require_line}")
|
||||||
else:
|
else:
|
||||||
print(f"{'':>4}{self.require_line}")
|
print(f"{'':>4}{self.require_line}")
|
||||||
|
|
||||||
def view_no_dependencies(self) -> None:
|
def view_no_dependencies(self) -> None:
|
||||||
""" Prints the message 'No dependencies'.
|
"""Prints the message 'No dependencies'."""
|
||||||
"""
|
|
||||||
if not self.package_requires:
|
if not self.package_requires:
|
||||||
print(f"{'':>1}{self.cyan}No dependencies{self.endc}")
|
print(f"{'':>1}{self.cyan}No dependencies{self.endc}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue