feat: add manager, entry and command

This commit is contained in:
2023-03-13 00:06:21 +03:00
parent a8788fbaf9
commit ccdbb00eff
11 changed files with 244 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
from ..command import Command
__all__ = ("PoetryCommand",)
class PoetryCommand(Command):
EXECUTOR: str = "poetry"
def __init__(self, *args: str) -> None:
super().__init__(self.EXECUTOR, *args)
@classmethod
def env_use(cls, python_version: str) -> "PoetryCommand":
return cls("env", "use", python_version)
@classmethod
def install(cls) -> "PoetryCommand":
return cls("install")