Support multiple target files #32

Manually merged
BaumiCoder merged 6 commits from feature/31-support-multiple-target-files into main 2026-02-19 16:03:12 +01:00
Owner

Resolves #31

User perspective

Both commands, check and fix, now support to process multiple target files and folder. (For all given folders, recursively all files are processed. If you give a file directly and an (indirect) parent folder of it, the file is always only processed ones.)

Developer perspective

To extend also the lib crate interface, the CommandArgs struct get a second new function to create an instance with multiple targets. Furthermore, the renamed targets getter of the struct is now only visible inside the crate as there is no need to use it from the outside. (Assumption: Currently not used yet from the outside.)

Resolves #31 ### User perspective Both commands, `check` and `fix`, now support to process multiple target files and folder. (For all given folders, recursively all files are processed. If you give a file directly and an (indirect) parent folder of it, the file is always only processed ones.) ### Developer perspective To extend also the lib crate interface, the `CommandArgs` struct get a second `new` function to create an instance with multiple targets. Furthermore, the renamed `targets` getter of the struct is now only visible inside the crate as there is no need to use it from the outside. (Assumption: Currently not used yet from the outside.)
Adjust CommandArgs getter
All checks were successful
/ changes (pull_request) Successful in 53s
/ lint_reuse (pull_request) Successful in 1m11s
/ lint_codespell (pull_request) Successful in 1m5s
/ lint_ecformat (pull_request) Successful in 8m37s
/ test (pull_request) Successful in 58s
/ lint_cargo_deny (pull_request) Has been skipped
/ lint_clippy (pull_request) Has been skipped
/ lint_rustfmt (pull_request) Has been skipped
/ lint_taplo (pull_request) Has been skipped
/ lint_yamllint (pull_request) Has been skipped
/ lint_cargo_udeps (pull_request) Has been skipped
430c2aae30
Also now in plural and should not be used from outside the crate.
BaumiCoder manually merged commit 4f52763627 into main 2026-02-19 16:03:12 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BaumiCoder/ecformat!32
No description provided.