xonsh
xonsh copied to clipboard
Added `SpecModifier` and ``threadable`` and ``unthreadable`` aliases
TODO:
[ ] Test proc.threadable [ ] Docs
Before
__xonsh__.commands_cache.threadable_predictors['ssh'] = lambda *a, **kw: True
!(ssh host -T "echo 1")
After
!(threadable ssh host -T "echo 1")
Closes #4214 #2119
For community
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
@gforsyth @jnoortheen I splitted this PR into two:
- This PR has pure refreshing of specs.py without logic changes. Here I just group the code into functions.
- The next PR to consider with positive difference is 5443 - it's branch from this PR.
Please review and merge. Thanks!