Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add stdin input and smart section matching to blurb add#67

Open
gpshead wants to merge 1 commit into
python:mainpython/blurb:mainfrom
gpshead:stdin-and-smart-sectionsgpshead/blurb:stdin-and-smart-sectionsCopy head branch name to clipboard
Open

Add stdin input and smart section matching to blurb add#67
gpshead wants to merge 1 commit into
python:mainpython/blurb:mainfrom
gpshead:stdin-and-smart-sectionsgpshead/blurb:stdin-and-smart-sectionsCopy head branch name to clipboard

Conversation

@gpshead

@gpshead gpshead commented Sep 7, 2025

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.