def dist_rplugin(self, rplugin: DistRplugin) -> Do: venv = yield venv_from_rplugin(rplugin) plugin_path_e = yield N.from_io(venv_plugin_path(venv)) plugin_path = yield N.e(plugin_path_e) python_exe = venv.meta.python_executable bin_path = venv.meta.bin_path yield start_python_rplugin_host(rplugin, python_exe, bin_path, plugin_path, Nil)
def reboot_spec() -> Do: before = yield call_once_defined(reboot_test) json = yield N.e(dump_json(update_query)) yield nvim_command(f'CrmUpdateState {json}') yield seen_program('update_state') updated_path = yield await_k(check_path) yield nvim_command('CrmUpdate') yield nvim_command('CrmReboot') yield wait_for_function_undef(reboot_test) after = yield call_once_defined(reboot_test) return updated_path & (k(before) == 13) & (k(after) == 17)