-
Notifications
You must be signed in to change notification settings - Fork 132
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
Better support for windows #59
Conversation
Wow! Thanks a lot! I'll take a proper look at it as soon as I get some spare time! One thing you can already do:
|
I just saw, that the whole |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for contributing!
Besides the two small code style issues, there is one more thing that needs to be done.
Pueue allows streaming of stdout/stderr, which continuously reads from the output files over here:
https://github.com/Nukesor/pueue/blob/master/daemon/streaming.rs#L57
You would need to use the command_data_to_text
function over there as well.
Besides these small issues, it looks good to me. I'll merge it as soon as those issues are addressed :)
I agree that the
|
Ok. This seems to be way more complicated than I expected. Regarding the disadvantages:
I guess just using PowerShell is probably the easiest solution for all problems? |
I think it works well enough currently. Still your right that just using From what I read about Since the |
I noticed that the It would be nice if we could detect if |
Well, let's merge this first. We will see if any problems arise. |
Sounds good! There isn't really that much windows specific code (this PR is overall quite small) so I think everything should mostly work. I'm quite happy with the |
I tried to use this on windows and got some compile errors so I fixed those. Then I noticed that the started tasks failed to start (they were started using
sh
instead ofcmd
). The output fromcmd
had lots of unicode replacement characters in them so I added a flag tocmd
that made it output unicode instead and then wrote some code to parse the output as utf16 instead of utf8. Now it seems to work for simple tasks so I thought I'd create this pull request with my changes.You will notice that the
daemon/task_handler.rs
file just returns errors when signals are used. So something better should probably be done there but otherwise it should hopefully work. Also I'm not 100% sure about the config paths but they seem to be okay.