mix ash_grant.export (AshGrant v0.14.1)

Copy Markdown View Source

Exports policy configuration to various formats.

Usage

# Export to YAML
mix ash_grant.export MyApp.Document --format=yaml

# Export to Mermaid diagram
mix ash_grant.export MyApp.Document --format=mermaid

# Export to Markdown documentation
mix ash_grant.export MyApp.Document --format=markdown

# Export to file
mix ash_grant.export MyApp.Document --format=markdown --output=docs/document.md

Formats

  • yaml - YAML policy test format
  • mermaid - Mermaid flowchart diagram
  • markdown - Human-readable documentation

Options

  • --format - Output format (required): yaml, mermaid, markdown
  • --output - Write to file instead of stdout