-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize Err library for error handling
- Loading branch information
Showing
34 changed files
with
1,552 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "Error Handling Standard for Commandlang CLIs" | ||
maintainer: ["Mathieu Barbin"] | ||
authors: ["Mathieu Barbin"] | ||
license: "MIT" | ||
homepage: "https://github.com/mbarbin/commandlang" | ||
doc: "https://mbarbin.github.io/commandlang/" | ||
bug-reports: "https://github.com/mbarbin/commandlang/issues" | ||
depends: [ | ||
"dune" {>= "3.16"} | ||
"ocaml" {>= "5.2"} | ||
"bisect_ppx" {dev & >= "2.8.3"} | ||
"commandlang" {= version} | ||
"ppx_js_style" {dev & >= "v0.17" & < "v0.18"} | ||
"sexplib0" {>= "v0.17" & < "v0.18"} | ||
"stdune" {>= "3.16"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mbarbin/commandlang.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(executable | ||
(name main) | ||
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a) | ||
(libraries cmdliner commandlang_to_cmdliner getting_started) | ||
(libraries commandlang_to_cmdliner getting_started) | ||
(instrumentation | ||
(backend bisect_ppx))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
let () = | ||
Cmdliner.Cmd.eval | ||
(Commandlang_to_cmdliner.Translate.command | ||
Getting_started.cmd | ||
~name:"my-calculator" | ||
~version:"%%VERSION%%") | ||
|> Stdlib.exit | ||
Commandlang_to_cmdliner.run | ||
Getting_started.cmd | ||
~name:"my-calculator" | ||
~version:"%%VERSION%%" | ||
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
(** Declarative Command-line Parsing for OCaml. *) | ||
|
||
(** {1 Utils} *) | ||
|
||
module Nonempty_list : sig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(library | ||
(name commandlang_err) | ||
(public_name commandlang-err) | ||
(flags | ||
:standard | ||
-w | ||
+a-4-40-41-42-44-45-48-66 | ||
-warn-error | ||
+a | ||
-open | ||
Commandlang | ||
-open | ||
Sexplib0) | ||
(libraries commandlang sexplib0 stdune) | ||
(instrumentation | ||
(backend bisect_ppx)) | ||
(lint | ||
(pps ppx_js_style -allow-let-operators -check-doc-comments)) | ||
(preprocess no_preprocessing)) |
Oops, something went wrong.