def run(self):
self.init_env_and_settings()
def check_settings_callback():
settings = self.load_settings()
if EI_DEVICE_ID in settings:
device_id = settings.get(EI_DEVICE_ID)
response, code = HTTP.get(self.env.project_manager.get_build_api_key(),
PL_BUILD_API_URL_V4 + "devices/" + device_id)
agent_id = response.get("device").get("agent_id")
agent_url = PL_AGENT_URL.format(agent_id)
sublime.set_clipboard(agent_url)
sublime.message_dialog(STR_AGENT_URL_COPIED.format(device_id, agent_url))
self.check_settings(callback=check_settings_callback)
评论列表
文章目录