Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jevinskie/dune-expand
Tool to view ppx-expanded OCaml source files - updated fork from Kiran Gopinathan's original
https://github.com/jevinskie/dune-expand
dune ppx ppxlib
Last synced: 7 days ago
JSON representation
Tool to view ppx-expanded OCaml source files - updated fork from Kiran Gopinathan's original
- Host: GitHub
- URL: https://github.com/jevinskie/dune-expand
- Owner: jevinskie
- License: gpl-3.0
- Created: 2024-08-23T03:08:03.000Z (4 months ago)
- Default Branch: jev/main
- Last Pushed: 2024-08-26T21:58:44.000Z (4 months ago)
- Last Synced: 2024-12-14T04:08:29.839Z (10 days ago)
- Topics: dune, ppx, ppxlib
- Language: OCaml
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opam dune-expand
Tool to expand PPXs in dune-based projects.
Run:
```
dune-expand
```
Output:
```
module Dune__exe.Expand:
...
;;
...
module Dune_expand_lib.Dune_spec:
...
;;
```## Fork notice
This was forked to work with newer OCaml versions from [Kiran Gopinathan's original repo](https://gitlab.com/gopiandcode/dune-expand).## Usage
```
NAME
dune-expand - Pretty prints the expanded output of OCaml source files
in a dune-based OCaml project.SYNOPSIS
dune-expand [OPTION]...OPTIONS
--help[=FMT] (default=auto)
Show this help in format FMT. The value FMT must be one of `auto',
`pager', `groff' or `plain'. With `auto', the format is `pager` or
`plain' whenever the TERM env var is `dumb' or undefined.-l, --list
Lists all discovered modules in the current dune project.-m MODULE, --module=MODULE
(optional) OCaml module (path) to expand. If not provided,
dune-expand expands all modules in the project.--version
Show version information.ENVIRONMENT
These environment variables affect the execution of dune-expand:DUNE_EXPAND_SEARCH_DEPTH
Integer representing the maximum number of directories to search
through to find the dune-project root before giving up.```