Reach.CLI.Commands.Inspect (Reach v2.5.0)

Copy Markdown View Source

Explains one function, module, file, or line.

mix reach.inspect Reach.Frontend.Elixir.translate/3
mix reach.inspect lib/reach/frontend/elixir.ex:54
mix reach.inspect TARGET --deps
mix reach.inspect TARGET --impact
mix reach.inspect TARGET --slice
mix reach.inspect TARGET --graph
mix reach.inspect TARGET --call-graph
mix reach.inspect TARGET --data
mix reach.inspect TARGET --context
mix reach.inspect TARGET --candidates
mix reach.inspect TARGET --why OTHER

Options

  • --format — output format passed to delegated analyses: text, json, oneline
  • --deps — callers, callees, and shared state
  • --impact — direct/transitive change impact
  • --slice — backward program slice
  • --forward — use a forward slice with --slice or --data
  • --graph — render graph output where supported
  • --call-graph — render the call graph around the target
  • --data — target-local data-flow view
  • --context — agent-readable bundle: deps, impact, data, effects
  • --candidates — advisory placeholder for graph-backed refactoring candidates
  • --why — explain the shortest graph-backed relationship to another target
  • --depth — transitive depth passed to deps/impact
  • --variable — variable filter passed to slice/data views
  • --limit — text display limit for truncated context sections
  • --all — show all text rows in context output

Summary

Functions

run(opts, target_args \\ [])