mix redirect_map_check (redirect_map_check v1.0.0)

Copy Markdown View Source

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

Summary

Functions

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

Functions

execute(args)

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

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