This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,20 @@
type t =
| Success
| Error
| Signal
let all = [ Success; Error; Signal ]
let code = function
| Success -> 0
| Error -> 1
| Signal -> 130
;;
let doc = function
| Success -> "on success."
| Error -> "if an error happened."
| Signal -> "if it was interrupted by a signal."
;;
let info e = Cmdliner.Cmd.Exit.info (code e) ~doc:(doc e)