This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement collecting paths into a HashSet
This properly implements the behavior I was expecting where: - the list of paths will not contain duplicate entries - it will append entries from STDIN if explicitly requested (I couldn't figure out the implicit logic to work in an intuitive way) - it will default to just the current working directory if no other paths have been specified I believe that paths are not guaranteed to be valid UTF-8, so the proper way to handle that is to use OsString values instead of String values. Note that I've also dropped the external bstr crate dependency, since I'm not 100% confident on how to convert between the two, or if it will even be beneficial/necessary. I can revist that in the future once the real parsing functionality is implemented. See: - clap-rs/clap#751
- Loading branch information
1 parent
c2e7e33
commit 20110fe
Showing
4 changed files
with
33 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters