Skip to content

Rework CLI input and scope handling#33

Open
NickSdot wants to merge 2 commits into
php:mainfrom
NickSdot:stack-02-cli-scope
Open

Rework CLI input and scope handling#33
NickSdot wants to merge 2 commits into
php:mainfrom
NickSdot:stack-02-cli-scope

Conversation

@NickSdot

Copy link
Copy Markdown
Contributor

Makes diff the default input, detects piped diffs automatically, adds --wide, and separates input planning from execution.

Depends on #29, #30, #31, and #32.
This PR diff will shrink as preceding PRs are merged and this branch is rebased.

As discussed --diff-behaviour is now the default. Piping a diff is still possible and detected automatically -- it no longer requires a --diff flag and diffs can be piped, hence --diff had no more function and was removed. Passing paths works as before. Since diff is not default, full runs are now covered by either docbook-cs . or docbook-cs path/docs-root/. What we discussed as --greedy is now --wider. The table shows how it works.

Input --wide Full File(s) References Meaning
none diff against branch point
none files and all referenced XML
<path> full file or directory
<path> full file or directory plus referenced XML
git diff | … piped diff scope
git diff | … piped diff files and referenced XML

@NickSdot
NickSdot force-pushed the stack-02-cli-scope branch from c26bc1e to 78d850b Compare July 22, 2026 07:39
@NickSdot
NickSdot marked this pull request as ready for review July 22, 2026 07:39
@NickSdot

Copy link
Copy Markdown
Contributor Author

Rebased and ready for review.

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