https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44313 --- Comment #1 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 212742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212742&action=edit Bug 44313: Add --sitemap and --nositemap filters to koha-list This patch adds --sitemap and --nositemap to koha-list, to show only the instances that have sitemap generation enabled (koha-sitemap --enable) or disabled. It follows the existing --sip/--nosip pattern and uses the is_sitemap_enabled helper from koha-functions.sh. Both options are mutually exclusive. The options are also passed through by koha-foreach, documented in the koha-list man page and added to the bash completion. Test plan: 1. On main, run: $ ktd --shell k$ sudo koha-list --sitemap => FAIL: unrecognized option '--sitemap' 2. Apply this patch 3. Run (koha-list from the git tree): k$ sudo bash debian/scripts/koha-list --sitemap => SUCCESS: Nothing is listed k$ sudo bash debian/scripts/koha-list --nositemap => SUCCESS: kohadev is listed 4. Enable sitemaps for the instance and repeat 3: k$ sudo koha-sitemap --enable kohadev => SUCCESS: --sitemap lists kohadev, --nositemap lists nothing 5. Check the options are mutually exclusive: k$ sudo bash debian/scripts/koha-list --sitemap --nositemap => SUCCESS: "Error: --sitemap and --nositemap are mutually exclusive." 6. Check koha-foreach passes the filter through: k$ sudo PATH=debian/scripts:$PATH bash debian/scripts/koha-foreach --sitemap echo ok => SUCCESS: 'ok' is printed once (for kohadev) 7. Check --help lists the new options: k$ sudo bash debian/scripts/koha-list --help 8. Clean up: k$ sudo koha-sitemap --disable kohadev 9. Sign off :-D Assisted-by: Opus 5.5 (Anthropic) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.