feat: Support HTTP sender (#1383)

This commit is contained in:
Fangyin Cheng
2024-04-08 16:13:49 +08:00
committed by GitHub
parent df36b947d1
commit 634e62cb6e
7 changed files with 430 additions and 4 deletions

View File

@@ -82,6 +82,12 @@ def run():
pass
@click.group()
def net():
"""Net tools."""
pass
stop_all_func_list = []
@@ -100,6 +106,7 @@ cli.add_command(new)
cli.add_command(app)
cli.add_command(repo)
cli.add_command(run)
cli.add_command(net)
add_command_alias(stop_all, name="all", parent_group=stop)
try:
@@ -200,6 +207,13 @@ try:
except ImportError as e:
logging.warning(f"Integrating dbgpt client command line tool failed: {e}")
try:
from dbgpt.util.network._cli import start_forward
add_command_alias(start_forward, name="forward", parent_group=net)
except ImportError as e:
logging.warning(f"Integrating dbgpt net command line tool failed: {e}")
def main():
return cli()