diff --git a/dev_gpt/options/generate/generator.py b/dev_gpt/options/generate/generator.py index e10fe68..ee83f86 100644 --- a/dev_gpt/options/generate/generator.py +++ b/dev_gpt/options/generate/generator.py @@ -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 diff --git a/dev_gpt/options/generate/templates_user.py b/dev_gpt/options/generate/templates_user.py index 7f4bb86..47442e8 100644 --- a/dev_gpt/options/generate/templates_user.py +++ b/dev_gpt/options/generate/templates_user.py @@ -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.