Merge pull request #95 from jina-ai/refactor_debugging_commands

🖋 refactor: debugging commands
This commit is contained in:
Florian Hönicke
2023-05-22 18:37:27 +02:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import os
import random
import re
import shutil
import sys
from typing import Callable
from typing import List, Text, Optional
@@ -558,10 +559,11 @@ pytest
'red')
return -1
continue
command = 'dev-gpt' if sys.argv[0] == 'dev-gpt' else 'python main.py'
print(f'''
You can now run or deploy your microservice:
dev-gpt run --path {self.microservice_root_path}
dev-gpt deploy --path {self.microservice_root_path}
{command} run --path {self.microservice_root_path}
{command} deploy --path {self.microservice_root_path}
'''
)
return 0

View File

@@ -18,7 +18,7 @@ The implemented function and the test must not access a database.
The implemented function and the test must not access a display.
The implemented function and the test must not access external apis unless it is explicitly mentioned.
The implemented function and the test must not be based on a large collection of hard-coded strings.
The implemented function and the test must not load data from the local file system unless it was created by the implemented function itself.
The implemented function and the test must not open files from the local file system unless it was created by the implemented function itself.
The implemented function and the test must not use a pre-trained model unless it is explicitly mentioned in the description.
The implemented function and the test must not train a model.
The implemented function and the test must not contain prototype or placeholder implementations.