mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-21 15:44:19 +01:00
🖋 refactor: debugging commands
This commit is contained in:
@@ -3,6 +3,7 @@ import os
|
|||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
from typing import List, Text, Optional
|
from typing import List, Text, Optional
|
||||||
|
|
||||||
@@ -440,10 +441,11 @@ pytest
|
|||||||
'red')
|
'red')
|
||||||
return -1
|
return -1
|
||||||
continue
|
continue
|
||||||
|
command = 'dev-gpt' if sys.argv[0] == 'dev-gpt' else 'python main.py'
|
||||||
print(f'''
|
print(f'''
|
||||||
You can now run or deploy your microservice:
|
You can now run or deploy your microservice:
|
||||||
dev-gpt run --path {self.microservice_root_path}
|
{command} run --path {self.microservice_root_path}
|
||||||
dev-gpt deploy --path {self.microservice_root_path}
|
{command} deploy --path {self.microservice_root_path}
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user