Module B0_ui.Editor
Editor interaction.
Cli arguments
val envs : Cmdliner.Term.env_info listenvsdescribe theVISUALandEDITORenvironment variable.
Editor
val find : ?search:B0_std.Fpath.t list -> unit -> (B0_std.Cmd.t option, string) Stdlib.resultfind ?search ~don'tfinds a suitable editor. This is (in order):Ok (Some pager)ifpageris a tool invocation parsed from theVISUALenvironment variable that can be found viaOs.Cmd.find ?search.Ok (Some pager)ifpageris a tool invocation parsed from theEDITORenvironment variable that can be found viaOs.Cmd.find ?search.Ok (Some pager)ifnanocan be found viaOs.Cmd.find ?search.Ok Noneotherwise.
val edit_files : B0_std.Cmd.t option -> B0_std.Fpath.t list -> (B0_std.Os.Cmd.status, string) Stdlib.resultedit-files editor fsuseseditorto edit the filesfs. Ifeditoris:None, an error message is returned mentioning that no editor was found.Some editorinvokes the command with filesfsand returns the exit status of the program.