Bugfixes
This commit is contained in:
@@ -5,10 +5,11 @@ from cpl_cli.command_abc import CommandABC
|
||||
|
||||
class CommandModel:
|
||||
|
||||
def __init__(self, name: str, aliases: list[str], command: Callable[CommandABC]):
|
||||
def __init__(self, name: str, aliases: list[str], command: Callable[CommandABC], is_project_needed: bool):
|
||||
self._name = name
|
||||
self._aliases = aliases
|
||||
self._command = command
|
||||
self._is_project_needed = is_project_needed
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
@@ -21,3 +22,7 @@ class CommandModel:
|
||||
@property
|
||||
def command(self) -> Callable[CommandABC]:
|
||||
return self._command
|
||||
|
||||
@property
|
||||
def is_project_needed(self) -> bool:
|
||||
return self._is_project_needed
|
||||
|
Reference in New Issue
Block a user