xonsh icon indicating copy to clipboard operation
xonsh copied to clipboard

Added `SpecModifier` and ``threadable`` and ``unthreadable`` aliases

Open anki-code opened this issue 1 year ago • 1 comments

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

anki-code avatar May 16 '24 15:05 anki-code

@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!

anki-code avatar May 26 '24 07:05 anki-code