package bos

  1. Overview
  2. Docs
Basic OS interaction for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

bos-0.2.1.tbz
sha512=8daeb8a4c2dd1f2460f6274ada19f4f1b6ebe875ff83a938c93418ce0e6bdb74b8afc5c9a7d410c1c9df2dad030e4fa276b6ed2da580639484e8b5bc92610b1d

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

Module Bos_setup.OS

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.

type ('a, 'e) result = ('a, [> Rresult.R.msg ] as 'e) result

The type for OS results.

Environment variables and program arguments

module Env = Bos.OS.Env

Environment variables.

module 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.

module Path = Bos.OS.Path

Path operations.

module File = Bos.OS.File

File operations.

module Dir = Bos.OS.Dir

Directory operations.

Commands

module Cmd = Bos.OS.Cmd

Executing commands.

Low level Unix access

module U = Bos.OS.U

Low level Unix access.

OCaml

Innovation. Community. Security.