Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use named arguments in sub-commands (inspired by OCamlPro/owi#461) #260

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

filipeom
Copy link
Member

@filipeom filipeom commented Dec 4, 2024

As inspired by OCamlPro/owi#461:

  • use cmdliner's monadic syntax to build cmd terms;
  • use named arguments in the cmds functions.

Other changes include:

  • Moving sub-commands into respective cmd_<command_name>.ml modules;
  • Creating a Solver_mode module;
  • Moving most functions from Solver_dispatcher into a more appropriate Solver_type module
  • Explicit exit codes for Term, Parse, and Exn error outputs in cmdliner.

As inspired by OCamlPro/owi#461:

- use cmdliner's monadic syntax to build cmd terms;
- use named arguments in the cmds functions.

Other changes include:

- Moving sub-commands into respective `cmd_<command_name>.ml` modules;
- Creating a `Solver_mode` module;
- Moving most functions from `Solver_dispatcher` into a more appropriate
  `Solver_type` module
- Explicit exit codes for Term, Parse, and Exn error outputs in
  cmdliner.
@filipeom filipeom merged commit 7f25a33 into formalsec:main Dec 4, 2024
5 checks passed
@filipeom filipeom deleted the use-cmdliner-monadic-syntax branch December 4, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant