package miaou-core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Miaou_interfaces.SystemSource

Sourcetype file_read = string -> (string, string) result
Sourcetype file_write = string -> string -> (unit, string) result
Sourcetype run_result = {
  1. exit_code : int;
  2. stdout : string;
  3. stderr : string;
}
Sourcetype t = {
  1. file_exists : string -> bool;
  2. is_directory : string -> bool;
  3. read_file : file_read;
  4. write_file : file_write;
  5. mkdir : string -> (unit, string) result;
  6. run_command : argv:string list -> cwd:string option -> (run_result, string) result;
  7. get_current_user_info : unit -> (string * string, string) result;
  8. get_disk_usage : path:string -> (int64, string) result;
  9. list_dir : string -> (string list, string) result;
  10. probe_writable : path:string -> (bool, string) result;
  11. get_env_var : string -> string option;
}
Sourceval set : t -> unit
Sourceval get : unit -> t option
Sourceval require : unit -> t