Skip to content

Releases: kompre/quarto_batch_convert

v2025.9.2

01 Dec 09:43
b0b07a4

Choose a tag to compare

fix: exit gracefully when no files found

Summary

Changes CLI behavior to exit with code 0 instead of 1 when no files are found to process. This treats "no work to do" as a valid state rather than an error condition.

Changes

  • quarto_batch_convert.py (lines 301-303, 321-326)

    • Replace ctx.exit(1) with return for graceful exit
    • Remove "Error:" prefix from messages
  • test_quarto_batch_convert.py (test_no_match_found)

    • Update to expect exit code 0 instead of 1
    • Update docstring to reflect graceful behavior

Rationale

  • No files to process is not an error - it's a valid state where there's no work to do
  • Prevents failure of CI/CD pipelines and automated scripts when no matching files exist
  • Consistent with Unix tools (grep, find) that exit 0 on no matches

Testing

✅ All 17 tests pass

  • test_no_match_found now validates exit code 0
  • All other tests remain passing

Test Scenarios Covered

  1. Empty directory with -r flag
  2. Directory with files but wrong extension
  3. Regex pattern that matches no files
  4. Non-existent glob pattern

All scenarios now exit with code 0 and informative (non-error) message.

🤖 Generated with Claude Code


Installation

pipx install quarto-batch-convert

Links

  • 📦 Package: PyPI
  • 🔗 Pull Request: #29
  • 📚 Documentation: README

v2025.9.1

21 Oct 13:42
0d33962

Choose a tag to compare

Chore/fix_cli_help_message

chore: fix help message in cli, added version, added github url


Installation

pipx install quarto-batch-convert

Links

  • 📦 Package: PyPI
  • 🔗 Pull Request: #27
  • 📚 Documentation: README

v2025.9.0

21 Oct 10:40
a7d2881

Choose a tag to compare

Release v2025.9.0 (production)

Published from PR #

See CHANGELOG for details.