Added --dev flag to cpl run & start #124

This commit is contained in:
2022-12-02 17:48:35 +01:00
parent 4dc7ee3314
commit 3c20ab296a
8 changed files with 84 additions and 20 deletions

View File

@@ -65,11 +65,15 @@ class CLICommands:
cls._run('remove', project, output=output)
@classmethod
def run(cls, project: str = None, output=False):
def run(cls, project: str = None, is_dev=False, output=False):
dev = ''
if is_dev:
dev = '--dev'
if project is None:
cls._run('run', output=output)
cls._run('run', dev, output=output)
return
cls._run('run', project, output=output)
cls._run('run', project, dev, output=output)
@classmethod
def start(cls, output=False):