4 ms·
Something like a Python/Ruby/whatever REPL with shell functions? Something like 'ls' would return an array of objects describing files, like: def name(text)
by csandreasen 12y ago
Something like a Python/Ruby/whatever REPL with shell functions? Something like 'ls' would return an array of objects describing files, like:
def name(text):
return lambda file: file.name.find(text) > -1
ls().filter(name('.txt'))
but less clunky?
- lloeki 12y ago> Something like 'ls' would return an array of objects describing files You probably think of type-safe pipes similar to Go channels.
- spacemanmatt 12y agoI was actually thinking I'd like a Go-like CLI. Realistically, I probably more want to convert a couple shitty shell scripts into proper Go programs and keep on using bash where it is appropriate.