package miaou-core

  1. Overview
  2. Docs
Miaou core/widgets (no drivers, no SDL)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6

doc/miaou-core.core/Miaou_core/System/index.html

Module Miaou_core.SystemSource

include module type of Miaou_interfaces.System
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