From a3858b38dca256ba174756f1b134ca6ab97b8ed6 Mon Sep 17 00:00:00 2001 From: Sarina Date: Mon, 22 Jul 2024 13:30:04 +0330 Subject: [PATCH] Add list users script (empty) --- core/cli.py | 4 ++-- core/scripts/hysteria2/list_users.sh | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 core/scripts/hysteria2/list_users.sh diff --git a/core/cli.py b/core/cli.py index 26ab005..9823c6d 100644 --- a/core/cli.py +++ b/core/cli.py @@ -25,7 +25,7 @@ class Command(StrEnum): REMOVE_USER = os.path.join(SCRIPT_DIR,'hysteria2' ,'remove_user.sh') SHOW_USER_URI = os.path.join(SCRIPT_DIR,'hysteria2' ,'show_user_uri.sh') TRAFFIC_STATUS = 'traffic.py' # won't be call directly (it's a python module) - LIST_USERS = '' # unknown for now + LIST_USERS = os.path.join(SCRIPT_DIR,'hysteria2','list_users.sh') INSTALL_TCP_BRUTAL = os.path.join(SCRIPT_DIR,'tcp-brutal', 'install.sh') INSTALL_WARP = os.path.join(SCRIPT_DIR,'warp', 'install.sh') UNINSTALL_WARP = os.path.join(SCRIPT_DIR,'warp', 'uninstall.sh') @@ -122,7 +122,7 @@ def traffic_status(): @cli.command('list-users') def list_users(): - pass + run_cmd(['bash',Command.LIST_USERS]) # endregion diff --git a/core/scripts/hysteria2/list_users.sh b/core/scripts/hysteria2/list_users.sh new file mode 100644 index 0000000..e69de29