-
Notifications
You must be signed in to change notification settings - Fork 9
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
Watch
mode would be nice
#9
Comments
I've done something similar with the 'git' integration for the SHELL-REPL modes check the gif in and the Documentation for the SHELL-REPLS (SSL/Web and SERIAL) So the device can act as a "remote" git repo, with a similar workflow. The commands I've implemented are:
The only thing to be aware is empty folders won't be pushed, so just be sure every folder has a file in it. |
But You still have to type |
Yes Otherwise for this watch mode there should be some sort of demon running to check for file changes inside a directory (cwd?) (name, number of files and hashes?) But if you want to implement this mode feel free to try/do it 👍 |
I'll look into this. This should work somehow like js task runners/bundlers. |
Look at this: https://stackoverflow.com/a/18599427/1589989 |
I think I've came up with an idea on how to do this: The use of command
I think there is no need to automate the upload on every change, or is there? I may give it a go this week |
Check #16 |
Okay, my concept was to upload immediately after file change. But that is also nice to have. |
I know, but how frequent should this mode check if there are any changes? I usually tend to save the file even if I haven't finished. This would mean the file is uploaded every time I save it? |
Yes. I do have an autosave enabled. So it is required, for example, 1s wait before upload, so it doesn't trigger on every character. |
upydev watch -fre ./src/*.py
would watch for any changes in files in a project directory. If change occurred it will upload only the changed file.The text was updated successfully, but these errors were encountered: