mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-09 04:49:26 +00:00
refactor: Refactor storage system (#937)
This commit is contained in:
@@ -51,6 +51,12 @@ def install():
|
||||
pass
|
||||
|
||||
|
||||
@click.group()
|
||||
def db():
|
||||
"""Manage your metadata database and your datasources."""
|
||||
pass
|
||||
|
||||
|
||||
stop_all_func_list = []
|
||||
|
||||
|
||||
@@ -64,6 +70,7 @@ def stop_all():
|
||||
cli.add_command(start)
|
||||
cli.add_command(stop)
|
||||
cli.add_command(install)
|
||||
cli.add_command(db)
|
||||
add_command_alias(stop_all, name="all", parent_group=stop)
|
||||
|
||||
try:
|
||||
@@ -96,10 +103,13 @@ try:
|
||||
start_webserver,
|
||||
stop_webserver,
|
||||
_stop_all_dbgpt_server,
|
||||
migration,
|
||||
)
|
||||
|
||||
add_command_alias(start_webserver, name="webserver", parent_group=start)
|
||||
add_command_alias(stop_webserver, name="webserver", parent_group=stop)
|
||||
# Add migration command
|
||||
add_command_alias(migration, name="migration", parent_group=db)
|
||||
stop_all_func_list.append(_stop_all_dbgpt_server)
|
||||
|
||||
except ImportError as e:
|
||||
|
Reference in New Issue
Block a user