Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the loading of a list of ignored paths from file #16

Open
mihai-dinculescu opened this issue Feb 17, 2021 · 0 comments
Open

Allow the loading of a list of ignored paths from file #16

mihai-dinculescu opened this issue Feb 17, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mihai-dinculescu
Copy link
Owner

mihai-dinculescu commented Feb 17, 2021

Currently one or more paths can be ignored by using the -i flag.

cargo wipe rust -i /home/user/path1 -i /home/user/path2

It would be most useful if these paths can be loaded from a file

cargo wipe rust -i /home/user/paths_to_ignore.txt

/home/user/paths_to_ignore.txt can contain one or more paths separated by new lines

/home/user/path1
/home/user/path2

This can be easily achieved by checking if the path given to the -i flag is a directory or a file.
If it's a directory, just ignore it. If it's a file, attempt to open it as text and parse the paths inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant