Module Permissions.Mode

Permission modes control the overall behavior of the permission system.

type t =
  1. | Default
    (*

    Standard permission mode with normal checks

    *)
  2. | Accept_edits
    (*

    Automatically accept file edits

    *)
  3. | Plan
    (*

    Planning mode with restricted execution

    *)
  4. | Bypass_permissions
    (*

    Bypass all permission checks

    *)

The type of permission modes.

val jsont : t Jsont.t

jsont is the Jsont codec for permission modes. Wire format uses camelCase: "default", "acceptEdits", "plan", "bypassPermissions".

val to_string : t -> string

to_string t converts a mode to its wire format string representation.

val of_string : string -> t

of_string s parses a mode from its wire format string representation.