| Current Path : /lib/python3.8/site-packages/cleo/loaders/ |
| Current File : //lib/python3.8/site-packages/cleo/loaders/command_loader.py |
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from cleo.commands.command import Command
class CommandLoader:
@property
def names(self) -> list[str]:
"""
All registered command names.
"""
raise NotImplementedError
def get(self, name: str) -> Command:
"""
Loads a command.
"""
raise NotImplementedError
def has(self, name: str) -> bool:
"""
Checks whether a command exists or not.
"""
raise NotImplementedError