mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
docs: example
This commit is contained in:
parent
d08248f6aa
commit
ab779f1887
1 changed files with 4 additions and 0 deletions
|
@ -1639,6 +1639,9 @@ Now you can run:
|
||||||
$(@lines ls /)
|
$(@lines ls /)
|
||||||
# ['/bin', '/etc', '/home']
|
# ['/bin', '/etc', '/home']
|
||||||
|
|
||||||
|
$(echo '{}' | @json head -n 1)['answer']
|
||||||
|
# 42
|
||||||
|
|
||||||
j = $(@json echo '{"answer":42}')
|
j = $(@json echo '{"answer":42}')
|
||||||
j['answer']
|
j['answer']
|
||||||
# 42
|
# 42
|
||||||
|
@ -1651,6 +1654,7 @@ Now you can run:
|
||||||
y[0]['type']
|
y[0]['type']
|
||||||
# 'MESSAGE'
|
# 'MESSAGE'
|
||||||
|
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Aliasing is a powerful way that xonsh allows you to seamlessly interact to
|
Aliasing is a powerful way that xonsh allows you to seamlessly interact to
|
||||||
|
|
Loading…
Add table
Reference in a new issue