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

Add ability to rerun command on directory change #22

Open
arctic-hen7 opened this issue Jul 18, 2021 · 1 comment
Open

Add ability to rerun command on directory change #22

arctic-hen7 opened this issue Jul 18, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@arctic-hen7
Copy link
Owner

Description
A new command core property (lowest level, next to shell/exec specification) .watch that is provided a directory path to watch. Then, the command will be rerun whenever any file in that directory changes.

Reasoning
This would make Bonnie able to easily run commands that need to watch one or more files. Quite frankly, it'd just be a useful feature. The only possible issue is that we'd need to assume the directory exists until runtime, and we'll have to check it before we run the command for the first time (on invocation) and fail fast, but that shouldn't be a problem.

Are you willing to work on an implementation of this?
Yes.

@arctic-hen7 arctic-hen7 added enhancement New feature or request triage This issue needs to be examined by a maintainer labels Jul 18, 2021
@arctic-hen7 arctic-hen7 self-assigned this Jul 18, 2021
@arctic-hen7 arctic-hen7 removed the triage This issue needs to be examined by a maintainer label Jul 18, 2021
@arctic-hen7
Copy link
Owner Author

Having played around a little with watching directories in Perseus, I think I'm reasonably familiar with what needs to be done for this, but it's definitely lower priority than the other open issues at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant