Henry Schreiner
Henry Schreiner
I've thought about this before, but haven't had the time or enough familiarity with async (seems like I never get past making simple examples and demos, it hasn't quite been...
It would be in addition to it, not a replacement - in fact, it seems possible to detect if something is being called in await, so it might be possible...
If you want to draft a basic proposal and/or proof of concept PR, I'd be happy to review and discuss.
How about we develop them in `plumbum.experimental...`? Then we don't even have to worry about them being importable in Python 2 and can do proper type hints and such. ;)
I'm going to work on #531 and maybe merge #513, then release a minor update. Next we can start working on pulling out colorlib and cli, and that should go...
Most important for starting out is the API. What will it look like in use? Most of `foo['command']` is lazy; nothing happens until you use `& FG` or `()` or...
Personally, I like writing a bit of docs-like (or sometimes tests-like) material first, something like this: ```python from plumbum import cmd async with cmd.ls: pass ``` I'd start with what...
FYI, Python 2 has been removed, and I'm working on cleaning up the code a bit. Static types are starting to show up, etc. :)
It's much easier now that we are 3.8+. I think something explicit (like the second example) would be better; while you can detect an async context, it's not very friendly;...
`cmd.sudo('ls', "aa~aa")` works, as does `cmd.sudo(cmd.ls, "aa~aa")`. You are giving a command to another command, which is causing the two levels of wrapping.