# `mix redirect_map_check`
[🔗](https://github.com/jaizendra-netizen/redirect_map_check/blob/main/lib/mix/tasks/redirect_map_check.ex#L1)

Usage: `mix redirect_map_check redirects.csv [--strict]`

CSV columns: from_path, to_path. Both are trimmed and compared exactly as strings.
The task never fetches a URL.

Exit code 0 after printing the report. With `--strict` the exit code is 1 when any
self redirect, conflict, chain or loop exists (duplicates alone are only reported).
Exit code 2 when the input cannot be read or the arguments are wrong.
Background: https://www.onegtmlab.dev/tool-directory/research-and-scraping/dataforseo

# `execute`

```elixir
@spec execute([String.t()]) :: {:ok, 0 | 1, String.t()} | {:error, String.t()}
```

Run the check. Returns `{:ok, exit_code, output}` or `{:error, message}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
