mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
ask kitten: Output JSON when used standalone
This commit is contained in:
parent
0a1b399447
commit
5b4e4f032d
1 changed files with 2 additions and 1 deletions
|
|
@ -527,4 +527,5 @@ def handle_result(args: List[str], data: Response, target_window_id: int, boss:
|
|||
if __name__ == '__main__':
|
||||
ans = main(sys.argv)
|
||||
if ans:
|
||||
print(ans)
|
||||
import json
|
||||
print(json.dumps(ans))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue