Add some type hint in cli_api.py
This commit is contained in:
@ -416,12 +416,12 @@ def stop_webpanel():
|
||||
run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'stop'])
|
||||
|
||||
|
||||
def get_webpanel_url():
|
||||
def get_webpanel_url() -> str | None:
|
||||
'''Gets the URL of WebPanel.'''
|
||||
return run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'url'])
|
||||
|
||||
|
||||
def get_webpanel_api_token():
|
||||
def get_webpanel_api_token() -> str | None:
|
||||
'''Gets the API token of WebPanel.'''
|
||||
return run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'api-token'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user