Improve output of quick start script (#207)

Print the commands, so they can be copy-pasted
to repeat individual parts of the script.
This commit is contained in:
marina-p 2021-05-11 14:54:10 -07:00 коммит произвёл GitHub
Родитель d8210ff7b5
Коммит 362947b253
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -38,7 +38,9 @@ def compile_spec(api_spec_path, restler_dll_path):
os.makedirs(RESTLER_TEMP_DIR)
with usedir(RESTLER_TEMP_DIR):
subprocess.run(f'dotnet \"{restler_dll_path}\" compile --api_spec \"{api_spec_path}\"', shell=True)
command=f"dotnet \"{restler_dll_path}\" compile --api_spec \"{api_spec_path}\""
print(command)
subprocess.run(command, shell=True)
def test_spec(ip, port, host, use_ssl, restler_dll_path):
""" Runs RESTler's test mode on a specified Compile directory
@ -76,6 +78,7 @@ def test_spec(ip, port, host, use_ssl, restler_dll_path):
if host is not None:
command = f"{command} --host {host}"
print(command)
subprocess.run(command, shell=True)
if __name__ == '__main__':