LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`-c`/`--command` for running one-shot programs

LightAndLight opened this issue · comments

I'd like to run short ipso programs without creating a file.

Use case:

# print the name and contents of each file in the current directory
$ ipso -c 'cmd.eachline_ `fd -tfile` (\file -> comp; println "$file:\n"; cmd.run `cat $file`; println "")'