Writes a JSON manifest of Descripex-annotated modules to a file.
The manifest is produced by Descripex.Manifest.build/1 and contains
version, timestamp, and full function metadata (docs, hints, specs,
signatures) for every public function in the given modules.
Usage
# Explicit module list
mix descripex.manifest MyApp.Funding MyApp.Risk
# Auto-discover annotated modules in an application
mix descripex.manifest --app my_app
# Custom output path
mix descripex.manifest --output priv/manifest.json MyApp.Funding
# Pretty-printed JSON
mix descripex.manifest --pretty MyApp.FundingOptions
--output/-o— output file path (default:api_manifest.json)--pretty— indent JSON for readability--app— discover all modules in the given OTP app that export__api__/0
Prerequisites
This task requires jason for JSON encoding. Most Elixir projects already
include it. If not, add {:jason, "~> 1.4"} to your deps.
Module Resolution Order
- Module names passed as CLI arguments
--appflag (discovers modules exporting__api__/0)config :descripex, :manifest_modulesapplication env
Summary
Functions
@spec run([String.t()]) :: :ok
Run the manifest export task.