Implement get-webpanel-api-token command

This commit is contained in:
Iam54r1n4
2025-02-05 19:34:31 +00:00
parent 287253da0a
commit 82394d6b6c
3 changed files with 26 additions and 3 deletions

View File

@ -422,6 +422,15 @@ def get_web_panel_url():
click.echo(f'Hysteria web panel is now running. The service is accessible on: {url}')
except Exception as e:
click.echo(f'{e}', err=True)
@cli.command('get-webpanel-api-token')
def get_web_panel_api_token():
try:
token = cli_api.get_webpanel_api_token()
click.echo(f'WebPanel API token: {token}')
except Exception as e:
click.echo(f'{e}', err=True)
# endregion