package bos

  1. Overview
  2. Docs
Basic OS interaction for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

bos-0.3.0.tbz
sha512=77416442448462fb316b9b64ec213038153e82c6de030d511838a15bb13b80700598c1bcfae1c90ef766d4f42c9bf5dcf231eeff23709558246d7946962858cc

doc/bos.setup/Bos_setup/OS/index.html

Module Bos_setup.OSSource

include module type of struct include Bos.OS end

Results

The functions of this module never raise Sys_error or Unix.Unix_error instead they turn these errors into error messages. If you need fine grained control over unix errors use the lower level functions in Bos.OS.U.

Sourcetype ('a, 'e) result = ('a, [> `Msg of string ] as 'e) result

The type for OS results.

Environment variables and program arguments

Sourcemodule Env = Bos.OS.Env

Environment variables.

Sourcemodule Arg = Bos.OS.Arg

Quick and dirty program arguments parsing.

File system operations

Note. When paths are relative they are expressed relative to the current working directory.

Sourcemodule Path = Bos.OS.Path

Path operations.

Sourcemodule File = Bos.OS.File

File operations.

Sourcemodule Dir = Bos.OS.Dir

Directory operations.

Commands

Sourcemodule Cmd = Bos.OS.Cmd

Executing commands.

Low level Unix access

module U = Bos.OS.U

Low level Unix access.