Environment variables
module Env : sig ... endEnvironment variables.
val envs : unit -> Cmdliner.Term.env_info listenvs () describe the VISUAL and EDITOR environment variables.
Editing
val find : ?search:B00_std.Fpath.t list -> unit -> (B00_std.Cmd.t option, string) Stdlib.resultfind ?search () finds 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 : B00_std.Cmd.t option -> B00_std.Fpath.t list -> (B00_std.Os.Cmd.status, string) Stdlib.resultedit-files editor fs uses editor to edit the files fs. If editor is:
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.