...
This commit is contained in:
parent
55597dcea5
commit
84b03e9f77
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ your machine).
|
|||
.. code-block:: python
|
||||
|
||||
from typing import List
|
||||
from kitty.boss import Boss
|
||||
|
||||
def main(args: List[str]) -> str:
|
||||
# this is the main entry point of the kitten, it will be executed in
|
||||
|
|
@ -30,7 +31,7 @@ your machine).
|
|||
# handle_result() function
|
||||
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
|
||||
w = boss.window_id_map.get(target_window_id)
|
||||
if w is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue