Source file cmd_window_list.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
open! Oxbow_ipc
let command_term =
let open Cmdliner.Term.Syntax in
let+ filter = Ctl_cli.window_match_any_term in
Query.Windows { filter }
;;
let name = "list"
let doc = "List windows matching the search pattern"
let cmd =
Ctl_cli.cmd ~name ~doc @@ Ctl_cli.query_term ~render:Ctl_cli.render_lines command_term
;;