Skip to content

Commit cf42bc6

Browse files
authored
Fix missing logger arg in CliPlugin
2 parents da9f10b + c77fc15 commit cf42bc6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/relic/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Core files shared between other Relic-Tool packages.
33
"""
44

5-
__version__ = "2.2.0"
5+
__version__ = "2.2.1"
66

77
from relic.core.cli import CLI
88

src/relic/core/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,16 @@ def _create_parser(
439439
) -> ArgumentParser:
440440
raise NotImplementedError
441441

442-
def command(self, ns: Namespace) -> Optional[int]:
442+
def command(self, ns: Namespace, *, logger: logging.Logger) -> Optional[int]:
443443
"""
444444
Run the command line program
445445
446446
:param ns: The arguments passed in, wrapped in a namespace object
447447
:type ns: Namespace
448448
449+
:param logger: The logger object to print messages to
450+
:type logger: logging.Logger
451+
449452
:returns: The exit status code, None implies a status code of 0
450453
:rtype: Optional[int]
451454
"""

0 commit comments

Comments
 (0)