mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
remove self.writer.drain() duplicate and add new functions to virtual ui
This commit is contained in:
@@ -198,15 +198,12 @@ class IPCClientUI(UIBase):
|
||||
|
||||
async def send_key_expired(self, message: Optional[str] = None):
|
||||
await self._send(MessageType.KEY_EXPIRED)
|
||||
await self.writer.drain()
|
||||
|
||||
async def send_app_finished(self):
|
||||
await self._send(MessageType.APP_FINISHED)
|
||||
await self.writer.drain()
|
||||
|
||||
async def send_feature_finished(self):
|
||||
await self._send(MessageType.FEATURE_FINISHED)
|
||||
await self.writer.drain()
|
||||
|
||||
async def ask_question(
|
||||
self,
|
||||
|
||||
@@ -37,6 +37,12 @@ class VirtualUI(UIBase):
|
||||
async def send_key_expired(self, message: Optional[str]):
|
||||
pass
|
||||
|
||||
async def send_app_finished(self):
|
||||
pass
|
||||
|
||||
async def send_feature_finished(self):
|
||||
pass
|
||||
|
||||
async def ask_question(
|
||||
self,
|
||||
question: str,
|
||||
|
||||
Reference in New Issue
Block a user