We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$func()
After merging #5377 I remember about old proposal. I'm not remember the author but It's interesting idea.
It will be cool to have an ability to create transformer of captured output:
json = $json(curl https://myjsonapi) # python mode, returns json object def mytransformer(stdout): # my transformations return stdout my = $mytransformer(echo 123) # python mode echo $mytransformer(echo 123) | grep 1 # subprocess mode
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
+1
The text was updated successfully, but these errors were encountered:
It's already implemented as xonsh macro:
def from_json(cmd): import json return json.loads(evalx(f"$({cmd})")) o = from_json!(echo '{"a":1}') o #{'a': 1} type(o) # dict
Sorry, something went wrong.
No branches or pull requests
After merging #5377 I remember about old proposal. I'm not remember the author but It's interesting idea.
It will be cool to have an ability to create transformer of captured output:
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: