def get_prompt_tokens(self, _) -> list:
"""
Return prompt tokens to use in the cli app.
If none were set during the init of this class, it
is assumed that the connection failed.
:param _:
:return:
"""
if self.prompt_tokens:
return self.prompt_tokens
return [
(Token.Applicationname, 'unknown application'),
(Token.On, ''),
(Token.Devicetype, ''),
(Token.Version, ' '),
(Token.Connection, '[' + state_connection.get_comms_type_string() + '] # '),
]
评论列表
文章目录