Implement window listing

This commit is contained in:
Kovid Goyal
2018-01-07 19:57:16 +05:30
parent eff881f4bb
commit 0cea6d5a1b
5 changed files with 46 additions and 1 deletions

View File

@@ -36,7 +36,9 @@ def cmd_ls(global_opts, opts, args):
def ls(boss, window):
raise NotImplementedError()
data = list(boss.list_os_windows())
data = json.dumps(data, indent=2, sort_keys=True)
return data
def handle_cmd(boss, window, cmd):