-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
echo sh::grep('html', sh::curl('http://example.com', array(
'location' => true
)));In current API I don't like 2 things:
- inverted order of commands (grep -> curl) when actually
curl | grepis intended - "wrap" or functional style a(b(c()))
It would be nice to have fluid API like this
sh::curl('http://example.com')->pipe('grep', 'html')->pipe('whatever');or
sh::curl('http://example.com')->sh('grep', 'html')->sh('whatever');or
sh::curl('http://example.com')->grep('html')->whatever();@MrRio what do you think?
Metadata
Metadata
Assignees
Labels
No labels