docs: example

This commit is contained in:
a 2024-07-12 14:00:10 +02:00
parent d08248f6aa
commit ab779f1887

View file

@ -1639,6 +1639,9 @@ Now you can run:
$(@lines ls /)
# ['/bin', '/etc', '/home']
$(echo '{}' | @json head -n 1)['answer']
# 42
j = $(@json echo '{"answer":42}')
j['answer']
# 42
@ -1651,6 +1654,7 @@ Now you can run:
y[0]['type']
# 'MESSAGE'
-------------
Aliasing is a powerful way that xonsh allows you to seamlessly interact to