Skip to content

feat: Expose include-text-files via CLI#73

Open
Pringled wants to merge 2 commits intomainfrom
add-include-text-files-to-cli
Open

feat: Expose include-text-files via CLI#73
Pringled wants to merge 2 commits intomainfrom
add-include-text-files-to-cli

Conversation

@Pringled
Copy link
Copy Markdown
Member

@Pringled Pringled commented May 7, 2026

This PR adds and --include-text-files to the CLI so it's in sync with the Python API. This resolves #72.

It's also added to the MCP args so a user can enable it by default if needed for any MCP server.

@Pringled Pringled requested a review from stephantul May 7, 2026 07:22
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/cli.py 100.00% <100.00%> (ø)
src/semble/mcp.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@stephantul stephantul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small comment

Comment thread src/semble/cli.py
return

index = SembleIndex.from_git(args.path) if _is_git_url(args.path) else SembleIndex.from_path(args.path)
include_text = getattr(args, "include_text_files", False)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this pattern being necessary. Is the arg added conditionally? For an action="store_true", the flag is set to false if it hasn't been added AFAIK.

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.

[Feature]: add JSON & YAML to index

2 participants