Improve CLI

This commit is contained in:
Andras Schmelczer 2022-07-08 13:38:26 +02:00
parent b2b7332b52
commit c06862ab76
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
2 changed files with 8 additions and 1 deletions

View file

@ -201,6 +201,11 @@ class GreatAIReload(BaseReload):
def main() -> None:
import os
import sys
sys.path.append(os.getcwd())
try:
serve()
except KeyboardInterrupt:

View file

@ -6,6 +6,8 @@ from typing import Any, Dict, Optional, Type, Union, cast
from pydantic import BaseModel
from great_ai import __version__
from .constants import (
DEFAULT_LARGE_FILE_CONFIG_PATHS,
DEFAULT_TRACING_DATABASE_CONFIG_PATHS,
@ -109,7 +111,7 @@ def configure(
route_config=route_config,
)
logger.info("Settings: configured ✅")
logger.info(f"GreatAI (v{__version__}): configured ✅")
for k, v in get_context().to_flat_dict().items():
logger.info(f"{LIST_ITEM_PREFIX}{k}: {v}")