package oxbow
Source file cmd_layout_tiling_select.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18open! Oxbow_core open! Oxbow_ipc let command_term scheme = let open Cmdliner.Term.Syntax in let+ scope = Ctl_cli.setting_scope_term in Command.Layout (Tiling (Select { scheme; scope })) ;; let mk_leaf (s : Scheme.t) = let name = Scheme.to_string s in Ctl_cli.cmd_pair ~name ~doc:(Printf.sprintf "Switch to the tiling layout with the %s scheme" name) @@ command_term s ;; let cmds, bind_cmds = List.map mk_leaf Scheme.all |> List.split