#!/bin/bash
# omarchy:summary=Show configured registry for each development ecosystem
# omarchy:examples=omarchycn dev-mirror list

set -euo pipefail

source "$OMARCHY_PATH/cn/lib/dev-mirror.sh"

printf '%-8s %-52s %s\n' "TARGET" "CURRENT" "CONFIG"

for target in "${CN_DM_TARGETS[@]}"; do
  current=$("cn_dm_get_$target")
  printf '%-8s %-52s %s\n' "$target" "${current:-<default>}" "$(cn_dm_config_file "$target")"
done
