micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).
MIT License
2.65k stars 143 forks source link

Pull request -- avoid 'grep *' in cwd when no config files exist. #40

Closed pcl closed 11 years ago

pcl commented 11 years ago

This prevents a 'grep *' from happening in the current working directory.

eproxus commented 11 years ago

Would appreciate this being merged. Currently the output is:

$ GET /json
grep: app: Is a directory
grep: config: Is a directory
grep: coverage: Is a directory
grep: db: Is a directory
grep: deploy: Is a directory
grep: doc: Is a directory
grep: lib: Is a directory
grep: log: Is a directory
grep: public: Is a directory
grep: script: Is a directory
grep: servlet: Is a directory
grep: test: Is a directory
grep: tmp: Is a directory
grep: vendor: Is a directory
grep: xml: Is a directory
{}
$

Which in my opinion makes the tool unusable.

rgrinberg commented 11 years ago

+1

micha commented 11 years ago

Thanks for the patch! Sorry it took so ridiculously long. I'm back now though.