Improve CLI
This commit is contained in:
parent
b2b7332b52
commit
c06862ab76
2 changed files with 8 additions and 1 deletions
|
|
@ -201,6 +201,11 @@ class GreatAIReload(BaseReload):
|
|||
|
||||
|
||||
def main() -> None:
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.append(os.getcwd())
|
||||
|
||||
try:
|
||||
serve()
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue