Skip to content

watch multiple directories via --directory flag #42

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

Merged
merged 2 commits into from
May 2, 2020
Merged

watch multiple directories via --directory flag #42

merged 2 commits into from
May 2, 2020

Conversation

leefernandes
Copy link
Contributor

this PR provides functionality I needed for a monorepo project, the ability to provide multiple --directory flags which are watched for changes.

@githubnemo
Copy link
Owner

Thanks for the addition. This seems reasonable! I'll review this tomorrow.

@@ -122,6 +121,7 @@ var (
flag_verbose = flag.Bool("verbose", false, "Be verbose about which directories are watched.")

// initialized in main() due to custom type.
flag_directories globList
flag_excludedDirs globList
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only line I have a gripe with.

directories is not a glob list and it never should be. I think we should refactor globList into a more general stringList and let globList build upon it.

Do you want to make that change? Let me know so I can do it instead.

@githubnemo githubnemo merged commit 86458ea into githubnemo:master May 2, 2020
Sign up for free to 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