19 lines
388 B
Python
19 lines
388 B
Python
from ..command import Command
|
|
|
|
__all__ = ("NpmCommand",)
|
|
|
|
|
|
class NpmCommand(Command):
|
|
EXECUTOR: str = "npm"
|
|
|
|
def __init__(self, *args: str) -> None:
|
|
super().__init__(self.EXECUTOR, *args)
|
|
|
|
@classmethod
|
|
def install(cls) -> "NpmCommand":
|
|
return cls("install")
|
|
|
|
@classmethod
|
|
def install_clean(cls) -> "NpmCommand":
|
|
return cls("install-clean")
|