...
This commit is contained in:
parent
55597dcea5
commit
84b03e9f77
@ -21,6 +21,7 @@ your machine).
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
from kitty.boss import Boss
|
||||||
|
|
||||||
def main(args: List[str]) -> str:
|
def main(args: List[str]) -> str:
|
||||||
# this is the main entry point of the kitten, it will be executed in
|
# this is the main entry point of the kitten, it will be executed in
|
||||||
@ -30,7 +31,7 @@ your machine).
|
|||||||
# handle_result() function
|
# handle_result() function
|
||||||
return answer
|
return answer
|
||||||
|
|
||||||
def handle_result(args: List[str], answer: str, target_window_id: int, boss: kitty.boss.Boss) -> None:
|
def handle_result(args: List[str], answer: str, target_window_id: int, boss: Boss) -> None:
|
||||||
# get the kitty window into which to paste answer
|
# get the kitty window into which to paste answer
|
||||||
w = boss.window_id_map.get(target_window_id)
|
w = boss.window_id_map.get(target_window_id)
|
||||||
if w is not None:
|
if w is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user