Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Sep 7, 2025

This PR replaces #45, implementing just the stdin functionality and smart section matching without requiring the cyclopts dependency.

New features

1. Stdin input (-D/--rst-on-stdin) - Read blurb content from stdin for automation:

echo "Fixed a bug in the parser" | blurb add -i 12345 -s core -D

2. Smart section matching - Case-insensitive matching and aliases:

  • apiC API
  • coreCore and Builtins
  • libLibrary
  • Plus flexible substring matching

Changes

  • Modified src/blurb/_add.py to implement both features
  • Updated src/blurb/_cli.py to handle the -D flag
  • Updated documentation

Co-authored with Claude Code.

@gpshead gpshead marked this pull request as draft September 7, 2025 00:55
@gpshead gpshead force-pushed the stdin-and-smart-sections branch 2 times, most recently from a883941 to c6cbafe Compare September 7, 2025 01:02
- Add -D/--rst-on-stdin option to read blurb content from stdin
- Requires both --issue and --section when using stdin input
- Add smart section matching with case-insensitive and substring matching
- Add common section aliases (api→C API, core→Core and Builtins, etc.)
- Update tests to reflect new matching behavior
- Update documentation with examples of new features
@gpshead gpshead force-pushed the stdin-and-smart-sections branch from c6cbafe to 7fbe386 Compare September 7, 2025 01:03
@gpshead gpshead marked this pull request as ready for review September 7, 2025 01:04
@gpshead gpshead requested a review from AA-Turner September 7, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant