Skip to content

Rework CLI input and scope handling - #33

Merged
jordikroon merged 15 commits into
php:mainfrom
NickSdot:stack-02-cli-scope
Jul 25, 2026
Merged

Rework CLI input and scope handling#33
jordikroon merged 15 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--wideFull File(s)ReferencesMeaning
nonediff against branch point
nonefiles 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
NickSdotforce-pushed the stack-02-cli-scope branch from c26bc1e to 78d850bCompareJuly 22, 2026 07:39
@NickSdot
NickSdot marked this pull request as ready for review July 22, 2026 07:39
@NickSdot

Copy link
Copy Markdown
ContributorAuthor

Rebased and ready for review.

Comment threadsrc/Application.php Outdated
Comment threadsrc/Application.php Outdated
Comment threadsrc/Application.php
Comment threadphpunit.xml.dist Outdated
Comment threadsrc/Diff/GitDiffProvider.php Outdated
@NickSdot
NickSdot marked this pull request as draft July 24, 2026 16:08
@NickSdot
NickSdot marked this pull request as ready for review July 24, 2026 18:47
Comment threadsrc/Application.php Outdated
Comment threadsrc/Application.php Outdated
Comment threadsrc/Git/GitClient.php Outdated
@NickSdot

Copy link
Copy Markdown
ContributorAuthor

Review comments addressed.

@jordikroon
jordikroon merged commit af323b9 into php:mainJul 25, 2026
3 checks passed
jordikroon added a commit to php/doc-en that referenced this pull request Jul 25, 2026
NickSdot added a commit to NickSdot/php__docbook-cs that referenced this pull request Jul 25, 2026
@NickSdotNickSdot mentioned this pull request Jul 25, 2026
NickSdot added a commit to NickSdot/php__docbook-cs that referenced this pull request Jul 25, 2026
NickSdot added a commit to NickSdot/php__docbook-cs that referenced this pull request Jul 25, 2026
NickSdot added a commit to NickSdot/php__docbook-cs that referenced this pull request Jul 26, 2026
jordikroon pushed a commit that referenced this pull request Jul 26, 2026
* test: drop redundancy to avoid coverage gymnastics
* test: suppressed native warning
* test: added coverage for UpstreamResolver
* test: added early return
* test: increased coverage
* test: increased edge case coverage
* test: added cwd fallback
* test: added fixer mapping coverage
* test: removed obsolete todos
ref #33 (comment)
* test: simplified simpara source matching
* test: covered declaration masking
* test: covered valid indentation styles
* test: covered exception name mismatch
* test: covered report edge cases
* test: covered input all paths
* test: covered diff edge cases
* test: covered scope edge cases
* test: covered noop fix edge cases
* test: covered fixer input edge cases
* test: academics
* test: academics
* test: covered processing failure paths
* test: removed @api; now covered by tests
* review: removed yoda style
@NickSdot
NickSdot deleted the stack-02-cli-scope branch August 24, 2026 08:45
Sign up for freeto 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.

2 participants

@NickSdot@jordikroon