mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 12:12:57 -04:00
cleanroom: modernize tui diagnostics and align release packaging
This commit is contained in:
@@ -12,4 +12,20 @@ if rg -n --hidden -g '!target/**' -g '!scripts/cleanroom_guard.sh' "$forbidden_p
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Prevent stale subcommand-era examples in active user docs.
|
||||
active_docs=(../README.md README.md ../MIGRATION.md)
|
||||
stale_command_pattern='cargo run -p openbitdo -- ui([[:space:]]|$)|cargo run -p openbitdo -- run([[:space:]]|$)|(^|[^[:alnum:]_])openbitdo ui([[:space:]]|$)|(^|[^[:alnum:]_])openbitdo run([[:space:]]|$)'
|
||||
if rg -n "$stale_command_pattern" "${active_docs[@]}" | rg -v '\(legacy\)' | rg -v '\(historical\)'; then
|
||||
echo "cleanroom guard failed: stale openbitdo subcommand surface found in active docs"
|
||||
echo "expected current usage: openbitdo [--mock]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
stale_aur_pattern='packaging/aur/openbitdo(/|$)|`openbitdo` \(source build\)'
|
||||
if rg -n "$stale_aur_pattern" "${active_docs[@]}" | rg -v '\(legacy\)' | rg -v '\(historical\)'; then
|
||||
echo "cleanroom guard failed: stale source AUR package reference found in active docs"
|
||||
echo "expected current AUR package surface: openbitdo-bin only"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "cleanroom guard passed"
|
||||
|
||||
Reference in New Issue
Block a user