difftastic/sample_files/elvish_1.elv

21 lines
356 B
Plaintext

# Taken from the Elvish homepage https://elv.sh
curl https://api.github.com/repos/elves/elvish/issues |
from-json | all (one) |
each {|x| echo (exact-num $x[number]): $x[title] } |
head -n 7
if $true { echo good } else { echo bad }
for x [lorem ipsum] {
echo $x.pdf
}
try {
fail 'bad error'
} except e {
echo error $e
} else {
echo ok
}