You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a flag that only restarts the program when a file is updated.
Description:
Developing a program that's intended to exit can be challenging with Runar, as it currently restarts the program every time. This can lead to repetitive output and unnecessary restarts.
Example:
$ runar -r -f myscript.sh -- ./myscript.sh
START
PROCESSING...
END
START
PROCESSING...
END
START
PROCESSING...
END
START
PROCESSING...
END
START
...
Proposed Solution:
To address this, I propose introducing a -w (or -wait) flag to Runar. When this flag is used, Runar would only initiate a restart when a file update is detected. This feature would greatly improve the development experience.
Proposed Example:
# With the proposed -w flag
$ runar -r -w -f myscript.sh -- ./myscript.sh
START
PROCESSING...
END
<runar> child process exited with 0... Runar is now waiting for a file update...
Benefits:
Enhanced Development Experience: The new -w flag would prevent unnecessary restarts, making it easier to work on programs meant to exit.
Implementation Note:
As for implementation, Runar would need to monitor the specified file for changes and trigger a restart only when updates occur.
Additional Notes:
This feature could significantly reduce repetitive output during development.
The proposed flag name is -w, but you could consider alternatives...
The text was updated successfully, but these errors were encountered:
Feature Request:
Add a flag that only restarts the program when a file is updated.
Description:
Developing a program that's intended to exit can be challenging with Runar, as it currently restarts the program every time. This can lead to repetitive output and unnecessary restarts.
Example:
Proposed Solution:
To address this, I propose introducing a -w (or -wait) flag to Runar. When this flag is used, Runar would only initiate a restart when a file update is detected. This feature would greatly improve the development experience.
Proposed Example:
Benefits:
Implementation Note:
As for implementation, Runar would need to monitor the specified file for changes and trigger a restart only when updates occur.
Additional Notes:
The text was updated successfully, but these errors were encountered: