You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# EncodingFixTool
2
2
3
3
A fast, parallel, command-line fixer for Delphi source file encodings.
4
-
It scans `.pas`, `.dpr`, …; detects UTF-8/ASCII vs. legacy single-byte encodings; repairs mixed lines (Windows-1250/1252/ANSI), and writes clean UTF-8 with an optional BOM. Line endings are preserved by default, or normalized to Windows CRLF when requested.
4
+
It scans a directory tree or one explicit file; detects UTF-8/ASCII vs. legacy single-byte encodings; repairs mixed lines (Windows-1250/1252/ANSI), and writes clean UTF-8 with an optional BOM. Line endings are preserved by default, or normalized to Windows CRLF when requested.
5
5
6
6
---
7
7
@@ -31,6 +31,9 @@ EncodingFixTool path=C:\Projs\MyApp v bkp-dir=C:\backup\myapp
31
31
:: Only scan .pas files in ./src (not recursive), remove BOM if present
Binary Delphi forms are detected from raw bytes and skipped unchanged. Text DFM files remain eligible for the normal encoding and optional line-ending repair path.
152
155
153
156
***Relative reporting**
154
-
Paths in logs are shown **relative to** the scanned `path`, for readability.
157
+
Paths in logs are shown **relative to** the scanned directory, for readability. In single-file mode the scan root is the file's parent directory.
155
158
156
159
## AI/agent usage
157
160
@@ -173,6 +176,12 @@ Use dry-run mode first when the dirty worktree is not fully understood:
Do not run the non-dry command over broad third-party or vendored code unless that is the intended scope. Inspect the JSON summary and `git diff --stat` before committing.
177
186
178
187
## Agent skill
@@ -265,4 +274,4 @@ EncodingFixTool pairs well with [MaxLogic Delphi Companion](https://github.com/M
265
274
266
275
*`0` – completed without parse errors or per-file failures.
267
276
*`1` – invalid parameter or one or more files failed to process.
268
-
*`2` – the `path` argument didn’t exist.
277
+
*`2` – the `path` argument didn’t exist as either a directory or a file.
Copy file name to clipboardExpand all lines: TASKS.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Tasks
2
2
3
-
Next task ID: T-007
3
+
Next task ID: T-008
4
4
5
5
## Summary
6
6
Open tasks: 0 (In Progress: 0, Next Today: 0, Next This Week: 0, Next Later: 0, Blocked: 0)
7
-
Done tasks: 6
7
+
Done tasks: 7
8
8
9
9
## In Progress
10
10
@@ -18,6 +18,35 @@ Done tasks: 6
18
18
19
19
## Done
20
20
21
+
### T-007 [CLI] Support single-file path targets
22
+
Completed: 2026-06-16
23
+
Outcome:
24
+
-`path=<file>` is accepted as a first-class narrow target.
25
+
- Single-file mode uses the file's parent directory as the scan root and processes only that file when its extension matches the active options or preset.
26
+
- README, agent skill, reference docs, and changelog document the single-file workflow.
Notes: Strict TDD followed for the DUnitX single-file regression. Initial RED was exit code 2 for `path=<file>`; GREEN passed after normalizing file paths into explicit single-file scan mode.
49
+
21
50
### T-006 [DOC] Refresh README for workflow and presets
0 commit comments